org.gsm.oneapi.responsebean.mms
Class RetrieveMMSMessageResponse

java.lang.Object
  extended by org.gsm.oneapi.responsebean.mms.RetrieveMMSMessageResponse
All Implemented Interfaces:
java.io.Serializable

public class RetrieveMMSMessageResponse
extends java.lang.Object
implements java.io.Serializable

The full response from the OneAPI server for a request to retrieve the full contents of an MMS message including the message body and attachments

See Also:
Serialized Form

Nested Class Summary
static class RetrieveMMSMessageResponse.Attachment
          inner class representing each file attachment returned
 
Constructor Summary
RetrieveMMSMessageResponse()
           
 
Method Summary
 java.util.ArrayList<RetrieveMMSMessageResponse.Attachment> getAttachments()
          get the list of attachments to the MMS message
 java.lang.String getContentType()
          return the HTTP Content-Type returned from the server if available
 int getHTTPResponseCode()
          return the HTTP response code returned from the server
 InboundMessage getInboundMessage()
          return the detail of the MMS message
 java.lang.String getLocation()
          return the HTTP location field returned form the server
 RequestError getRequestError()
          return the server generated error response (from the JSON based error response)
 void setAttachments(java.util.ArrayList<RetrieveMMSMessageResponse.Attachment> attachments)
          set the list of attachments to the MMS message.
 void setContentType(java.lang.String contentType)
          set the HTTP Content-Type header returned by the server
 void setHTTPResponseCode(int httpResponseCode)
          set the stored HTTP response code
 void setInboundMessage(InboundMessage inboundMessage)
          set the detail of the MMS message element.
 void setLocation(java.lang.String location)
          set the HTTP location field
 void setRequestError(RequestError requestError)
          set the contents of the error response
 java.lang.String toString()
          generate a textual representation of the RetrieveMMSMessageResponse instance including all nested elements and classes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RetrieveMMSMessageResponse

public RetrieveMMSMessageResponse()
Method Detail

getHTTPResponseCode

public int getHTTPResponseCode()
return the HTTP response code returned from the server


getContentType

public java.lang.String getContentType()
return the HTTP Content-Type returned from the server if available


getRequestError

public RequestError getRequestError()
return the server generated error response (from the JSON based error response)


setHTTPResponseCode

public void setHTTPResponseCode(int httpResponseCode)
set the stored HTTP response code

Parameters:
httpResponseCode - sets the stored HTTP response code

setContentType

public void setContentType(java.lang.String contentType)
set the HTTP Content-Type header returned by the server

Parameters:
contentType - sets the stored HTTP Content-Type header

setRequestError

public void setRequestError(RequestError requestError)
set the contents of the error response

Parameters:
requestError - sets the contents of the error response
See Also:
RequestError

getLocation

public java.lang.String getLocation()
return the HTTP location field returned form the server


setLocation

public void setLocation(java.lang.String location)
set the HTTP location field

Parameters:
location - contents of the HTTP location header

getInboundMessage

public InboundMessage getInboundMessage()
return the detail of the MMS message


setInboundMessage

public void setInboundMessage(InboundMessage inboundMessage)
set the detail of the MMS message element. This is called internally to set the contents according to the MIME response.


getAttachments

public java.util.ArrayList<RetrieveMMSMessageResponse.Attachment> getAttachments()
get the list of attachments to the MMS message


setAttachments

public void setAttachments(java.util.ArrayList<RetrieveMMSMessageResponse.Attachment> attachments)
set the list of attachments to the MMS message. This is called internally to set the contents according to of the MIME response.

Parameters:
attachments -

toString

public java.lang.String toString()
generate a textual representation of the RetrieveMMSMessageResponse instance including all nested elements and classes

Overrides:
toString in class java.lang.Object