|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object context.arch.comm.RequestObject
This is the generic object that encapsulates the data and information for sending a request to another CTK object : the data object and the url of the request, the destination server hostname and port. At the creation, the data type is always DataObject, but it may be change into String when the data has been encoded.
DataObject
,
context.arch.comm.HTTPRequestObject
Constructor Summary | |
RequestObject(DataObject dataObject,
java.lang.String messageUrl)
Creates new RequestObject with the dataobject to send and the message url. |
|
RequestObject(DataObject dataObject,
java.lang.String messageUrl,
java.lang.String serverHostname)
Creates new RequestObject with the dataobject to send, the message url and the destination server hostname |
|
RequestObject(DataObject dataObject,
java.lang.String messageUrl,
java.lang.String serverHostname,
int serverPort)
Creates new RequestObject with the dataobject to send, the message url, the destination server hostname and the destination server port. |
|
RequestObject(DataObject dataObject,
java.lang.String messageUrl,
java.lang.String serverHostname,
int serverPort,
java.lang.String serverId)
Creates new RequestObject with the dataobject to send, the message url, the destination server hostname and the destination server port. |
|
RequestObject(DataObject dataObject,
java.lang.String messageUrl,
java.lang.String serverHostname,
int serverPort,
java.lang.String serverId,
java.lang.String type)
Creates new RequestObject with the dataobject to send, the message url, the destination server hostname and the destination server port. |
Method Summary | |
boolean |
equals(RequestObject anotherRequestObject)
Tests if 2 request objects are equal or not |
java.lang.Object |
getData()
Returns the message data object |
java.lang.Object |
getEncodedData()
Returns the enocded message object |
DataObject |
getNonEncodedData()
Returns the message data object |
int |
getPort()
Returns the destination server port |
java.lang.String |
getReceiverId()
Get the receiver id |
java.lang.String |
getServerHostname()
Returns the destination server hostname |
java.lang.String |
getType()
Returns the type of the message : this method should be overridden |
java.lang.String |
getUrl()
Returns the message url |
boolean |
portDefined()
Tests if the destination server port is defined or not |
void |
setData(java.lang.Object data)
|
void |
setEncodedData(java.lang.String encodedData)
|
void |
setReceiverId(java.lang.String receiverId)
Set the receiver id |
void |
setType(java.lang.String type)
Sets the type of the request |
void |
setUrl(java.lang.String url)
|
java.lang.String |
toString()
Returns a printable version of this object |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public RequestObject(DataObject dataObject, java.lang.String messageUrl)
messageUrl
- The message urlpublic RequestObject(DataObject dataObject, java.lang.String messageUrl, java.lang.String serverHostname)
dataObject
- The data to sendmessageUrl
- The message urlserverHostname
- The destination server hostnamepublic RequestObject(DataObject dataObject, java.lang.String messageUrl, java.lang.String serverHostname, int serverPort)
dataObject
- The data to sendmessageUrl
- The message urlserverHostname
- The destination server hostnameserverPort
- The destination server portpublic RequestObject(DataObject dataObject, java.lang.String messageUrl, java.lang.String serverHostname, int serverPort, java.lang.String serverId)
dataObject
- The data to sendmessageUrl
- The message urlserverHostname
- The destination server hostnameserverPort
- The destination server portpublic RequestObject(DataObject dataObject, java.lang.String messageUrl, java.lang.String serverHostname, int serverPort, java.lang.String serverId, java.lang.String type)
dataObject
- The data to sendmessageUrl
- The message urlserverHostname
- The destination server hostnameserverPort
- The destination server portMethod Detail |
public java.lang.Object getData()
public void setData(java.lang.Object data)
public DataObject getNonEncodedData()
public java.lang.Object getEncodedData()
public void setEncodedData(java.lang.String encodedData)
public java.lang.String getServerHostname()
public java.lang.String getUrl()
public void setUrl(java.lang.String url)
public java.lang.String getType()
public void setType(java.lang.String type)
type
- public boolean portDefined()
public int getPort()
public void setReceiverId(java.lang.String receiverId)
public java.lang.String getReceiverId()
public boolean equals(RequestObject anotherRequestObject)
anotherRequestObject
-
public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |