|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.security.auth.trustedapps.TransportErrorMessage
public class TransportErrorMessage
TransportErrorMessages are reported when a client makes a TrustedApplication request.
The String format of these is important. They basically consist of three elements:
TransportErrorMessage.Code constants)
To parse a String into a TransportErrorMessage use a Parser. If the String is not in the correct
format, exceptions will be thrown. The format to the toString() method and the format the Parser
accepts must be symmetric and constant.
| Nested Class Summary | |
|---|---|
static class |
TransportErrorMessage.ApplicationIdNotFoundInRequest
AppId not found in request |
static class |
TransportErrorMessage.ApplicationUnknown
|
static class |
TransportErrorMessage.BadProtocolVersion
|
static class |
TransportErrorMessage.Code
Typesafe enum that contains all known error codes. |
static class |
TransportErrorMessage.MagicNumberNotFoundInRequest
|
static class |
TransportErrorMessage.PermissionDenied
|
static class |
TransportErrorMessage.SecretKeyNotFoundInRequest
|
static class |
TransportErrorMessage.UserUnknown
|
| Method Summary | |
|---|---|
TransportErrorMessage.Code |
getCode()
|
java.lang.String |
getFormattedMessage()
|
java.lang.String[] |
getParameters()
|
java.lang.String |
toString()
String representation of a TransportErrorMessage. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public TransportErrorMessage.Code getCode()
public java.lang.String[] getParameters()
public java.lang.String getFormattedMessage()
public java.lang.String toString()
TransportErrorMessage. Of the form:
codewhere the params are encoded as a JSON array.Parser#SEPARATORmessageParser#SEPARATORparams
Note: The String representation of a TransportErrorMessage is sent across the wire as an error to the
client. Therefore this format is static and must not change.
toString in class java.lang.ObjectParser#parse(String)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||