| 
|||||||||
| 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.csv.CSVMessage
public class CSVMessage
CSVMessage is helping the xBus transporting and converting
 data structured in CSV format
 
As CSV is not a standardized, the authors have decided to base the implementation on an existing definition (@see -> CSV Definition).
 The entries are internally stored in a DOM tree. Thus CSVMessage
 extends XMLMessageAbstract to use some of
 its xml features.
 
| Constructor Summary | |
|---|---|
CSVMessage(java.lang.String function,
           XBUSSystem source,
           java.lang.String id)
This constructor initializes the new CSVMessage with the
 given parameters. | 
|
CSVMessage(XBUSSystem source)
This constructor stores the source, creates an unique
 identifier for the message and initializes the requestTimestamp. | 
|
| Method Summary | |
|---|---|
 java.lang.String | 
getRequestText(XBUSSystem system)
Returns the request text as String.  | 
 java.lang.String | 
getResponseText()
Returns the response text as String.  | 
 void | 
setRequestText(java.lang.String text,
               XBUSSystem source)
Sets the text of the incoming message.  | 
 void | 
setResponseDocument(org.w3c.dom.Document doc,
                    XBUSSystem destination)
Sets the response data by passing a DOM tree  | 
 void | 
setResponseText(java.lang.String text,
                XBUSSystem destination)
Sets the response data  | 
protected  void | 
synchronizeRequestFields(XBUSSystem system)
Empty method.  | 
protected  void | 
synchronizeResponseFields(XBUSSystem system)
Empty method.  | 
| Methods inherited from class net.sf.xbus.protocol.xml.XMLMessageAbstract | 
|---|
getDocumentBuilder, getRequestDocument, getRequestObject, getResponseDocument, getResponseObject, parseXML, serializeXML, setRequestDocument, setRequestObject, setResponseObject | 
| 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 | 
| Methods inherited from interface net.sf.xbus.protocol.XMLMessage | 
|---|
getRequestDocument, getResponseDocument, setRequestDocument | 
| Constructor Detail | 
|---|
public CSVMessage(XBUSSystem source)
source, creates an unique
 identifier for the message and initializes the requestTimestamp. It is
 used when constructing a new CSVMessage from the data of a
 receiver.
source - the source of the data
public CSVMessage(java.lang.String function,
                  XBUSSystem source,
                  java.lang.String id)
CSVMessage with the
 given parameters. It is used when constructing a new
 CSVMessage by converting it from another
 Message.
function - the function to be executed by the destination systemsource - the source of the dataid - the message id| Method Detail | 
|---|
public java.lang.String getRequestText(XBUSSystem system)
                                throws XException
getRequestText in interface TextMessagegetRequestText in class XMLMessageAbstractsystem - the name of the process
XException
public void setRequestText(java.lang.String text,
                           XBUSSystem source)
                    throws XException
XMLMessageAbstractorg.w3c.dom.Document.
setRequestText in interface TextMessagesetRequestText in class XMLMessageAbstracttext - a XML document from the requestsource - system where the request is coming from
XException
public java.lang.String getResponseText()
                                 throws XException
getResponseText in interface TextMessagegetResponseText in class XMLMessageAbstractXException
public void setResponseText(java.lang.String text,
                            XBUSSystem destination)
                     throws XException
setResponseText in interface TextMessagesetResponseText in class XMLMessageAbstracttext - the new response text as Stringdestination - the destination process
XException
public void setResponseDocument(org.w3c.dom.Document doc,
                                XBUSSystem destination)
                         throws XException
setResponseDocument in interface XMLMessagesetResponseDocument in class XMLMessageAbstractdoc - the DOM treedestination - the destination process
XExceptionprotected void synchronizeRequestFields(XBUSSystem system)
synchronizeRequestFields in class XMLMessageAbstractprotected void synchronizeResponseFields(XBUSSystem system)
synchronizeResponseFields in class XMLMessageAbstract
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||