|
|||||||||
| 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.xml.XMLMessageAbstract
net.sf.xbus.protocol.bytearraylist.ByteArrayListMessage
public class ByteArrayListMessage
ByteArrayListMessage
| Constructor Summary | |
|---|---|
ByteArrayListMessage(java.lang.String function,
XBUSSystem source,
java.lang.String id)
Constructor for ByteArrayListMessage. |
|
ByteArrayListMessage(XBUSSystem source)
Constructor for ByteArrayListMessage. |
|
| Method Summary | |
|---|---|
java.lang.Object |
getRequestObject(XBUSSystem system)
Gets the object from an incomimg message. |
java.lang.Object |
getResponseObject()
Gets the object of the outgoing message. |
void |
setEncodingSystem(XBUSSystem system)
|
void |
setRequestObject(java.lang.Object obj,
XBUSSystem source)
Parses the incoming ByteArrayListinto
a XML document. |
void |
setResponseObject(java.lang.Object obj,
XBUSSystem destination)
Empty method |
protected void |
synchronizeRequestFields(XBUSSystem system)
After setting the request data, both setRequestText and
setRequestDocument, some fields of the
Message must be synchronized with the request data. |
protected void |
synchronizeResponseFields(XBUSSystem system)
After setting the response data, both setResponseText and
setResponseDocument, some fields of the
Message must be synchronized with the response data. |
| Methods inherited from class net.sf.xbus.protocol.xml.XMLMessageAbstract |
|---|
getDocumentBuilder, getRequestDocument, getRequestText, getResponseDocument, getResponseText, parseXML, serializeXML, setRequestDocument, setRequestText, setResponseDocument, setResponseText |
| 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 ByteArrayListMessage(XBUSSystem source)
source -
public ByteArrayListMessage(java.lang.String function,
XBUSSystem source,
java.lang.String id)
function - source - id - | Method Detail |
|---|
public void setRequestObject(java.lang.Object obj,
XBUSSystem source)
throws XException
ByteArrayListinto
a XML document.
setRequestObject in interface ObjectMessagesetRequestObject in class XMLMessageAbstractobj - the content of the requestsource - system where the request is coming from
XExceptionObjectMessage.setRequestObject(java.lang.Object,
net.sf.xbus.base.xbussystem.XBUSSystem)
public void setResponseObject(java.lang.Object obj,
XBUSSystem destination)
setResponseObject in interface ObjectMessagesetResponseObject in class XMLMessageAbstractobj - the content of the responsedestination - system where the response is coming fromObjectMessage.setResponseObject(java.lang.Object,
net.sf.xbus.base.xbussystem.XBUSSystem)
public java.lang.Object getRequestObject(XBUSSystem system)
throws XException
ObjectMessage
getRequestObject in interface ObjectMessagegetRequestObject in class XMLMessageAbstractsystem - reference to the system for which the message is meant
ByteArrayList
XExceptionObjectMessage.getRequestObject(net.sf.xbus.base.xbussystem.XBUSSystem)public java.lang.Object getResponseObject()
ObjectMessage
getResponseObject in interface ObjectMessagegetResponseObject in class XMLMessageAbstractnullObjectMessage.getResponseObject()public void setEncodingSystem(XBUSSystem system)
protected void synchronizeRequestFields(XBUSSystem system)
XMLMessageAbstractsetRequestText and
setRequestDocument, some fields of the
Message must be synchronized with the request data.
Message. When it is not found, the value
from the Message must be copied to the request data.
Message.
Message object
to the request data, to be sure that it is set correct.
Message object to the request data.
synchronizeRequestFields in class XMLMessageAbstractprotected void synchronizeResponseFields(XBUSSystem system)
XMLMessageAbstractsetResponseText and
setResponseDocument, some fields of the
Message must be synchronized with the response data.
synchronizeResponseFields in class XMLMessageAbstract
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||