public class MM7Status extends MMSStatus
MMSStatus
class. It can be used to respond to incoming messages / reports with MM7-
specific status codes.Modifier and Type | Field and Description |
---|---|
static int |
STATUS_ADDRESS_ERROR
Status: Address Error
|
static int |
STATUS_ADDRESS_NOT_FOUND
Status: Address Not Found
|
static int |
STATUS_APPLICATION_ADDRESSING_NOT_SUPPORTED
Status: Application Addressing not supported
|
static int |
STATUS_APPLICATION_DENIED
Status: Application denied
|
static int |
STATUS_APPLICATION_ID_NOT_FOUND
Status: Application ID not found
|
static int |
STATUS_CLIENT_ERROR
Status: Client error
|
static int |
STATUS_GENERAL_SERVICE_ERROR
Status: General service error
|
static int |
STATUS_IMPROPER_IDENTIFICATION
Status: Improper identification
|
static int |
STATUS_LINKEDID_NOT_FOUND
Status: LinkedID not found
|
static int |
STATUS_MESSAGE_FORMAT_CORRUPT
Status: Message format corrupt
|
static int |
STATUS_MESSAGE_ID_NOT_FOUND
Status: Message ID Not found
|
static int |
STATUS_MESSAGE_REJECTED
Status: Message rejected
|
static int |
STATUS_MULTIMEDIA_CONTENT_REFUSED
Status: Multimedia content refused
|
static int |
STATUS_MULTIPLE_ADDRESSES_NOT_SUPPORTED
Status: Multiple addresses not supported
|
static int |
STATUS_NOT_POSSIBLE
Status: Not Possible
|
static int |
STATUS_OPERATION_RESTRICTED
Status: Operation restricted
|
static int |
STATUS_PARTIAL_SUCCESS
Status: Partial success
|
static int |
STATUS_REPLY_APPLICATION_ID_NOT_FOUND
Status: Reply Application ID not found
|
static int |
STATUS_SERVER_ERROR
Status: Server Error
|
static int |
STATUS_SERVICE_DENIED
Status: Service denied
|
static int |
STATUS_SERVICE_ERROR
Status: Service error
|
static int |
STATUS_SERVICE_UNAVAILABLE
Status: Service unavailable
|
static int |
STATUS_SUCCESS
Status: Success
|
static int |
STATUS_UNSUPPORTED_OPERATION
Status: Unsupported operation
|
static int |
STATUS_UNSUPPORTED_VERSION
Status: Unsupported version
|
static int |
STATUS_VALIDATION_ERROR
Status: Validation error
|
CLIENT_ERROR, SERVER_ERROR, SERVICE_ERROR, SUCCESS
Constructor and Description |
---|
MM7Status(int statusCode,
java.lang.String text)
Construct a new MM7Status object.
|
MM7Status(MMSStatus status) |
Modifier and Type | Method and Description |
---|---|
int |
getCode()
Returns the MM7 Status code (one of the
STATUS_ constants). |
java.lang.String |
getServiceCode()
Returns the MM7 ServiceCode or null if not present.
|
void |
setServiceCode(java.lang.String serviceCode)
Set a MM7 ServiceCode for this ResponseStatus.
|
java.lang.String |
toString() |
getText, isClientError, isServerError, isServiceError, isSuccess
public static final int STATUS_SUCCESS
public static final int STATUS_PARTIAL_SUCCESS
public static final int STATUS_CLIENT_ERROR
public static final int STATUS_OPERATION_RESTRICTED
public static final int STATUS_ADDRESS_ERROR
public static final int STATUS_ADDRESS_NOT_FOUND
public static final int STATUS_MULTIMEDIA_CONTENT_REFUSED
public static final int STATUS_MESSAGE_ID_NOT_FOUND
public static final int STATUS_LINKEDID_NOT_FOUND
public static final int STATUS_MESSAGE_FORMAT_CORRUPT
public static final int STATUS_APPLICATION_ID_NOT_FOUND
public static final int STATUS_REPLY_APPLICATION_ID_NOT_FOUND
public static final int STATUS_SERVER_ERROR
public static final int STATUS_NOT_POSSIBLE
public static final int STATUS_MESSAGE_REJECTED
public static final int STATUS_MULTIPLE_ADDRESSES_NOT_SUPPORTED
public static final int STATUS_APPLICATION_ADDRESSING_NOT_SUPPORTED
public static final int STATUS_GENERAL_SERVICE_ERROR
public static final int STATUS_IMPROPER_IDENTIFICATION
public static final int STATUS_UNSUPPORTED_VERSION
public static final int STATUS_UNSUPPORTED_OPERATION
public static final int STATUS_VALIDATION_ERROR
public static final int STATUS_SERVICE_ERROR
public static final int STATUS_SERVICE_UNAVAILABLE
public static final int STATUS_SERVICE_DENIED
public static final int STATUS_APPLICATION_DENIED
public MM7Status(int statusCode, java.lang.String text)
statusCode
- one of the STATUS_
constantstext
- an optional status text.public MM7Status(MMSStatus status)
public void setServiceCode(java.lang.String serviceCode)
public java.lang.String getServiceCode()
public int getCode()
STATUS_
constants).object XP, Inc. © 2000-2013. All rights reserved object XP