net.sf.xbus.protocol.as400
Class AS400ProgramMessage

java.lang.Object
  extended by net.sf.xbus.protocol.Message
      extended by net.sf.xbus.protocol.xml.XMLMessageAbstract
          extended by net.sf.xbus.protocol.xml.XBUSXMLMessage
              extended by net.sf.xbus.protocol.as400.AS400ProgramMessage
All Implemented Interfaces:
ObjectMessage, TextMessage, XMLMessage

public class AS400ProgramMessage
extends XBUSXMLMessage
implements TextMessage

AS400ProgramMessage represents a message for calling an AS400 program.


Constructor Summary
AS400ProgramMessage(java.lang.String function, XBUSSystem source, java.lang.String id)
          Initializes the new AS400ProgramMessage with the given parameters.
AS400ProgramMessage(XBUSSystem source)
          This constructor stores the source, creates an unique identifier for the message and initializes the requestTimestamp.
 
Method Summary
 
Methods inherited from class net.sf.xbus.protocol.xml.XBUSXMLMessage
getTemplateAsDocument, getTemplateAsString, synchronizeRequestFields, synchronizeResponseFields
 
Methods inherited from class net.sf.xbus.protocol.xml.XMLMessageAbstract
getDocumentBuilder, getRequestDocument, getRequestObject, getRequestText, getResponseDocument, getResponseObject, getResponseText, parseXML, serializeXML, setRequestDocument, setRequestObject, setRequestText, setResponseDocument, setResponseObject, 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
 
Methods inherited from interface net.sf.xbus.protocol.TextMessage
getRequestText, getResponseText, setRequestText, setResponseText
 
Methods inherited from interface net.sf.xbus.protocol.ObjectMessage
getRequestObject, getResponseObject, setRequestObject, setResponseObject
 
Methods inherited from interface net.sf.xbus.protocol.XMLMessage
getRequestDocument, getResponseDocument, setRequestDocument, setResponseDocument
 

Constructor Detail

AS400ProgramMessage

public AS400ProgramMessage(XBUSSystem source)
This constructor stores the source, creates an unique identifier for the message and initializes the requestTimestamp. It is used when constructing a new AS400ProgramMessage from the data of a receiver.

Parameters:
source - XBUSSystem object with information of this neighbor-system

AS400ProgramMessage

public AS400ProgramMessage(java.lang.String function,
                           XBUSSystem source,
                           java.lang.String id)
Initializes the new AS400ProgramMessage with the given parameters. It is used when constructing a new AS400ProgramMessage by converting it from another Message.

Parameters:
function -
source -
id -
Throws:
XException - if any error occurs