| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.xbus.protocol.Message
net.sf.xbus.protocol.simple.SimpleTextMessage
public class SimpleTextMessage
SimpleTextMessage is the most simple implementation of
 TextMessage.
| Constructor Summary | |
|---|---|
SimpleTextMessage(java.lang.String function,
                  XBUSSystem source,
                  java.lang.String id)
This constructor initializes the new SimpleTextMessage
 with the given parameters. | 
|
SimpleTextMessage(XBUSSystem source)
Creates the SimpleTextMessage with the given source. | 
|
| Method Summary | |
|---|---|
 java.lang.Object | 
getRequestObject(XBUSSystem system)
Gets the object from an incomimg message.  | 
 java.lang.String | 
getRequestText(XBUSSystem system)
Gets the text from an incomimg message.  | 
 java.lang.Object | 
getResponseObject()
Gets the object of the outgoing message.  | 
 java.lang.String | 
getResponseText()
Gets the text of the outgoing message.  | 
 void | 
setRequestObject(java.lang.Object text,
                 XBUSSystem source)
Sets the object from an incomimg message.  | 
 void | 
setRequestText(java.lang.String text,
               XBUSSystem source)
Sets the text of the incoming message.  | 
 void | 
setResponseObject(java.lang.Object text,
                  XBUSSystem destination)
Sets the object of the outgoing message.  | 
 void | 
setResponseText(java.lang.String text,
                XBUSSystem destination)
Sets the text of the outgoing message.  | 
| Methods inherited from class net.sf.xbus.protocol.Message | 
|---|
getErrorcode, getErrortext, getFunction, getId, getRequestTimestamp, getResponseTimestamp, getReturncode, getShortname, getSource, setErrorcode, setErrortext, setFunction, setId, setResponseTimestamp, setReturncode, setShortname | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public SimpleTextMessage(XBUSSystem source)
SimpleTextMessage with the given source.
public SimpleTextMessage(java.lang.String function,
                         XBUSSystem source,
                         java.lang.String id)
SimpleTextMessage
 with the given parameters. It is used when constructing a new
 SimpleTextMessage by converting it from another
 Message.
| Method Detail | 
|---|
public void setRequestText(java.lang.String text,
                           XBUSSystem source)
TextMessage
setRequestText in interface TextMessagetext - the content of the requestsource - system where the request is coming from
public void setResponseText(java.lang.String text,
                            XBUSSystem destination)
TextMessage
setResponseText in interface TextMessagetext - the content of the responsedestination - system where the response is coming frompublic java.lang.String getRequestText(XBUSSystem system)
TextMessage
getRequestText in interface TextMessagesystem - reference to the system for which the message is meant
public java.lang.String getResponseText()
TextMessage
getResponseText in interface TextMessage
public void setRequestObject(java.lang.Object text,
                             XBUSSystem source)
ObjectMessage
setRequestObject in interface ObjectMessagetext - the content of the requestsource - system where the request is coming from
public void setResponseObject(java.lang.Object text,
                              XBUSSystem destination)
ObjectMessage
setResponseObject in interface ObjectMessagetext - the content of the responsedestination - system where the response is coming frompublic java.lang.Object getRequestObject(XBUSSystem system)
ObjectMessage
getRequestObject in interface ObjectMessagesystem - reference to the system for which the message is meant
public java.lang.Object getResponseObject()
ObjectMessage
getResponseObject in interface ObjectMessage
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||