|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.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 ByteArrayList into
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
ByteArrayList
into
a XML document.
setRequestObject
in interface ObjectMessage
setRequestObject
in class XMLMessageAbstract
obj
- the content of the requestsource
- system where the request is coming from
XException
ObjectMessage.setRequestObject(java.lang.Object,
net.sf.xbus.base.xbussystem.XBUSSystem)
public void setResponseObject(java.lang.Object obj, XBUSSystem destination)
setResponseObject
in interface ObjectMessage
setResponseObject
in class XMLMessageAbstract
obj
- 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 ObjectMessage
getRequestObject
in class XMLMessageAbstract
system
- reference to the system for which the message is meant
ByteArrayList
XException
ObjectMessage.getRequestObject(net.sf.xbus.base.xbussystem.XBUSSystem)
public java.lang.Object getResponseObject()
ObjectMessage
getResponseObject
in interface ObjectMessage
getResponseObject
in class XMLMessageAbstract
null
ObjectMessage.getResponseObject()
public void setEncodingSystem(XBUSSystem system)
protected void synchronizeRequestFields(XBUSSystem system)
XMLMessageAbstract
setRequestText
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 XMLMessageAbstract
protected void synchronizeResponseFields(XBUSSystem system)
XMLMessageAbstract
setResponseText
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 |