com.objectxp.mms.protocol
Class MM7Status

java.lang.Object
  extended by com.objectxp.mms.MMSStatus
      extended by com.objectxp.mms.protocol.MM7Status
All Implemented Interfaces:
java.io.Serializable

public class MM7Status
extends MMSStatus

This class is a MM7-specific Extension of the MMSStatus class. It can be used to respond to incoming messages / reports with MM7- specific status codes.

Since:
jSMS 2.2
See Also:
Serialized Form

Field Summary
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
 
Fields inherited from class com.objectxp.mms.MMSStatus
CLIENT_ERROR, SERVER_ERROR, SERVICE_ERROR, SUCCESS
 
Constructor Summary
MM7Status(int statusCode, java.lang.String text)
          Construct a new MM7Status object.
MM7Status(MMSStatus status)
           
 
Method Summary
 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()
           
 
Methods inherited from class com.objectxp.mms.MMSStatus
getText, isClientError, isServerError, isServiceError, isSuccess
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

STATUS_SUCCESS

public static final int STATUS_SUCCESS
Status: Success

See Also:
Constant Field Values

STATUS_PARTIAL_SUCCESS

public static final int STATUS_PARTIAL_SUCCESS
Status: Partial success

See Also:
Constant Field Values

STATUS_CLIENT_ERROR

public static final int STATUS_CLIENT_ERROR
Status: Client error

See Also:
Constant Field Values

STATUS_OPERATION_RESTRICTED

public static final int STATUS_OPERATION_RESTRICTED
Status: Operation restricted

See Also:
Constant Field Values

STATUS_ADDRESS_ERROR

public static final int STATUS_ADDRESS_ERROR
Status: Address Error

See Also:
Constant Field Values

STATUS_ADDRESS_NOT_FOUND

public static final int STATUS_ADDRESS_NOT_FOUND
Status: Address Not Found

See Also:
Constant Field Values

STATUS_MULTIMEDIA_CONTENT_REFUSED

public static final int STATUS_MULTIMEDIA_CONTENT_REFUSED
Status: Multimedia content refused

See Also:
Constant Field Values

STATUS_MESSAGE_ID_NOT_FOUND

public static final int STATUS_MESSAGE_ID_NOT_FOUND
Status: Message ID Not found

See Also:
Constant Field Values

STATUS_LINKEDID_NOT_FOUND

public static final int STATUS_LINKEDID_NOT_FOUND
Status: LinkedID not found

See Also:
Constant Field Values

STATUS_MESSAGE_FORMAT_CORRUPT

public static final int STATUS_MESSAGE_FORMAT_CORRUPT
Status: Message format corrupt

See Also:
Constant Field Values

STATUS_APPLICATION_ID_NOT_FOUND

public static final int STATUS_APPLICATION_ID_NOT_FOUND
Status: Application ID not found

See Also:
Constant Field Values

STATUS_REPLY_APPLICATION_ID_NOT_FOUND

public static final int STATUS_REPLY_APPLICATION_ID_NOT_FOUND
Status: Reply Application ID not found

See Also:
Constant Field Values

STATUS_SERVER_ERROR

public static final int STATUS_SERVER_ERROR
Status: Server Error

See Also:
Constant Field Values

STATUS_NOT_POSSIBLE

public static final int STATUS_NOT_POSSIBLE
Status: Not Possible

See Also:
Constant Field Values

STATUS_MESSAGE_REJECTED

public static final int STATUS_MESSAGE_REJECTED
Status: Message rejected

See Also:
Constant Field Values

STATUS_MULTIPLE_ADDRESSES_NOT_SUPPORTED

public static final int STATUS_MULTIPLE_ADDRESSES_NOT_SUPPORTED
Status: Multiple addresses not supported

See Also:
Constant Field Values

STATUS_APPLICATION_ADDRESSING_NOT_SUPPORTED

public static final int STATUS_APPLICATION_ADDRESSING_NOT_SUPPORTED
Status: Application Addressing not supported

See Also:
Constant Field Values

STATUS_GENERAL_SERVICE_ERROR

public static final int STATUS_GENERAL_SERVICE_ERROR
Status: General service error

See Also:
Constant Field Values

STATUS_IMPROPER_IDENTIFICATION

public static final int STATUS_IMPROPER_IDENTIFICATION
Status: Improper identification

See Also:
Constant Field Values

STATUS_UNSUPPORTED_VERSION

public static final int STATUS_UNSUPPORTED_VERSION
Status: Unsupported version

See Also:
Constant Field Values

STATUS_UNSUPPORTED_OPERATION

public static final int STATUS_UNSUPPORTED_OPERATION
Status: Unsupported operation

See Also:
Constant Field Values

STATUS_VALIDATION_ERROR

public static final int STATUS_VALIDATION_ERROR
Status: Validation error

See Also:
Constant Field Values

STATUS_SERVICE_ERROR

public static final int STATUS_SERVICE_ERROR
Status: Service error

See Also:
Constant Field Values

STATUS_SERVICE_UNAVAILABLE

public static final int STATUS_SERVICE_UNAVAILABLE
Status: Service unavailable

See Also:
Constant Field Values

STATUS_SERVICE_DENIED

public static final int STATUS_SERVICE_DENIED
Status: Service denied

See Also:
Constant Field Values

STATUS_APPLICATION_DENIED

public static final int STATUS_APPLICATION_DENIED
Status: Application denied

See Also:
Constant Field Values
Constructor Detail

MM7Status

public MM7Status(int statusCode,
                 java.lang.String text)
Construct a new MM7Status object.

Parameters:
statusCode - one of the STATUS_ constants
text - an optional status text.

MM7Status

public MM7Status(MMSStatus status)
Method Detail

setServiceCode

public void setServiceCode(java.lang.String serviceCode)
Set a MM7 ServiceCode for this ResponseStatus.


getServiceCode

public java.lang.String getServiceCode()
Returns the MM7 ServiceCode or null if not present.


getCode

public int getCode()
Returns the MM7 Status code (one of the STATUS_ constants).


toString

public java.lang.String toString()
Overrides:
toString in class MMSStatus
Returns:
a string representation of the object.


object XP, Inc. © 2000-2008. All rights reserved object XP