|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.opencloud.slee.resources.mm7.MM7StatusCode
public class MM7StatusCode
Represents a MM7 Status Code. Constants in this class map to the numeric status codes defined by the MM7 specification.
Field Summary | |
---|---|
static int |
ADDRESS_ERROR
The address supplied in the request was not in a recognizable format or the MMS Relay/Server ascertained that the address was not valid for the network because it was determined not to be serviced by this MMS Relay/Server. |
static int |
ADDRESS_NOT_FOUND
The address supplied in the request could not be located by the MMS Relay/Server. |
static int |
APPLICATION_ADDRESSING_NOT_SUPPORTED
Recipient MMS User Agent does not support the transport of application data. |
static int |
APPLICATION_DENIED
The application does not have permission or funds to perform the requested operation. |
static int |
APPLICATION_ID_NOT_FOUND
This code is returned when an operation is requested on a previously submitted message and the MMS Relay/Server cannot find the destination application for the application ID specified or when the VASP receives a report concerning a previously submitted message and the application ID is not recognized. |
static int |
CLIENT_ERROR
The client made an invalid request |
static int |
GENERAL_SERVICE_ERROR
The requested service cannot be fulfilled. |
static int |
IMPROPER_IDENTIFICATION
Identification header of the request does not uniquely identify the client ( either the VASP or MMS Relay/Server ). |
static int |
LINKED_ID_NOT_FOUND
This code is returned when a LinkedID was supplied and the MMS Relay/Server cannot find the related message |
static int |
MESSAGE_FORMAT_CORRUPT
An element value format is inappropriate or incorrect. |
static int |
MESSAGE_ID_NOT_FOUND
This code is returned when an operation is requested on a previously submitted message and the MMS Relay/Server cannot find the moessage for the message ID specified or when the VASP receives a report concerning a previously submitted message and the message ID is not recognized. |
static int |
MESSAGE_REJECTED
Server could not complete the service requested. |
static int |
MULTIMEDIA_CONTENT_REFUSED
The server could not parse the MIME content that was attached to the SOAP message and indicated by the Content element or the content size or media type was unacceptable. |
static int |
MULTIPLE_ADDRESSES_NOT_SUPPORTED
The MMS Relay/Server does not support this operation on multiple recipients. |
static int |
NOT_POSSIBLE
The request could not be carried out because it is not possible. |
static int |
OPERATION_RESTRICTED
The request was refused due to lack of permission to execute the command. |
static int |
PARTIAL_SUCCESS
The request was executed, but some parts of the request could not be completed. |
static int |
REPLY_APPLICATION_ID_NOT_FOUND
This code is returned when a Reply Application ID was supplied and the MMS Relay/Server could not find the originating application. |
static int |
SERVER_ERROR
The server failed to fulfill an apparently valid request. |
static int |
SERVICE_DENIED
The client does not have permission or funds to perform the requested operation. |
static int |
SERVICE_ERROR
The operation caused a server (either MMS Relay/Server or VASP) failure and should not be resent. |
static int |
SERVICE_UNAVAILABLE
This indication may be sent by the server when service is temporarily unavailable, for example when server is busy. |
static int |
SUCCESS
The request was executed completely. |
static int |
UNSUPPORTED_OPERATION
The server does not support the request indicated by the Message Type element in the header of the message. |
static int |
UNSUPPORTED_VERSION
The version indicated by the MM7 version element is not supported. |
static int |
VALIDATION_ERROR
The SOAP and XML structures could not be parsed, mandatory fields are missing, or the message-format is not compatible to the format specified. |
Constructor Summary | |
---|---|
MM7StatusCode(int code)
Create a new MM7StatusCode object with a particular status code and no details. |
|
MM7StatusCode(int code,
java.lang.String details)
Create a new MM7StatusCode object with particular status code and details. |
|
MM7StatusCode(int code,
java.lang.String text,
java.lang.String details)
Create a new MM7StatusCode object with a particular status code, status text,
and details. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
|
java.lang.String |
getDetails()
Get the details for this MM7StatusCode object. |
java.lang.String |
getSOAPFaultCode()
Return the standard SOAP-level Fault Code for this status code. |
java.lang.String |
getSOAPFaultString()
Return the standard SOAP-level Fault String for this status code. |
static java.lang.String |
getStandardText(int code)
Get the standard status text for a status code. |
int |
getStatusCode()
Get the numeric status code. |
java.lang.String |
getStatusText()
Get the status text. |
int |
hashCode()
|
boolean |
isSuccess()
Determine if this status code is a "success" code. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int SUCCESS
public static final int PARTIAL_SUCCESS
public static final int CLIENT_ERROR
public static final int OPERATION_RESTRICTED
public static final int ADDRESS_ERROR
public static final int ADDRESS_NOT_FOUND
public static final int MULTIMEDIA_CONTENT_REFUSED
public static final int MESSAGE_ID_NOT_FOUND
public static final int LINKED_ID_NOT_FOUND
public static final int MESSAGE_FORMAT_CORRUPT
public static final int APPLICATION_ID_NOT_FOUND
public static final int REPLY_APPLICATION_ID_NOT_FOUND
public static final int SERVER_ERROR
public static final int NOT_POSSIBLE
public static final int MESSAGE_REJECTED
public static final int MULTIPLE_ADDRESSES_NOT_SUPPORTED
public static final int APPLICATION_ADDRESSING_NOT_SUPPORTED
public static final int GENERAL_SERVICE_ERROR
public static final int IMPROPER_IDENTIFICATION
public static final int UNSUPPORTED_VERSION
public static final int UNSUPPORTED_OPERATION
public static final int VALIDATION_ERROR
public static final int SERVICE_ERROR
public static final int SERVICE_UNAVAILABLE
public static final int SERVICE_DENIED
public static final int APPLICATION_DENIED
Constructor Detail |
---|
public MM7StatusCode(int code) throws java.lang.IllegalArgumentException
MM7StatusCode
object with a particular status code and no details.
The status text is set to the standard value as determined by getStandardText(int)
.
code
- the status code.
java.lang.IllegalArgumentException
- if code
< 1.public MM7StatusCode(int code, java.lang.String details) throws java.lang.IllegalArgumentException
MM7StatusCode
object with particular status code and details.
The status text is set to the standard value as determined by getStandardText(int)
.
code
- the status code.details
- any appropriate description providing details of the error or partial success.
This parameter may be null
.
java.lang.IllegalArgumentException
- if code
< 1.public MM7StatusCode(int code, java.lang.String text, java.lang.String details) throws java.lang.IllegalArgumentException, java.lang.NullPointerException
MM7StatusCode
object with a particular status code, status text,
and details.
code
- the status code.text
- the status text.details
- any appropriate description providing details of the error or partial success.
This parameter may be null
.
java.lang.IllegalArgumentException
- if code
< 1.
java.lang.NullPointerException
- if text
is null
.Method Detail |
---|
public static final java.lang.String getStandardText(int code)
code
- the status code.
SUCCESS
has the defined status text of "Success". If the status code is unknown, the text
"User-defined Status Code" is returned.
java.lang.IllegalArgumentException
- if code
< 1.public boolean isSuccess()
public final int getStatusCode()
public final java.lang.String getStatusText()
public final java.lang.String getDetails()
MM7StatusCode
object.
null
if no details have been set.public java.lang.String getSOAPFaultCode()
ResponseEvent#getSOAPFault
to obtain the actual fault.
public java.lang.String getSOAPFaultString()
ResponseEvent#getSOAPFault
to obtain the actual fault.
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |