net.sf.xbus.base.notifyerror
Class NotifyErrorMessage

java.lang.Object
  extended by net.sf.xbus.protocol.Message
      extended by net.sf.xbus.base.notifyerror.NotifyErrorMessage
All Implemented Interfaces:
TextMessage

public class NotifyErrorMessage
extends Message
implements TextMessage

Author:
Fleckenstein To change this generated comment edit the template variable "typecomment": Window>Preferences>Java>Templates. To enable and disable the creation of type comments go to Window>Preferences>Java>Code Generation.

Constructor Summary
NotifyErrorMessage(java.lang.String function, XBUSSystem source, java.lang.String id)
          This constructor initializes the new NotifyErrorMessage with the given parameters.
NotifyErrorMessage(XBUSSystem source)
          Creates the NotifyErrorMessage with the given source.
 
Method Summary
 java.util.Hashtable getAdditionalInfo()
          Returns the additionalInfo.
 java.lang.String getClassName()
          Returns the className.
 java.lang.String getErrorMessage()
          Returns the errorMessage.
 java.lang.Object getErrorRequest()
          Returns the errorRequest.
 java.lang.String getRequestText(XBUSSystem system)
          Gets the text from an incomimg message.
 java.lang.String getResponseText()
          Gets the text of the outgoing message.
 void setData(java.lang.String className, java.lang.String errorMessage, java.lang.Object errorRequest, java.util.Hashtable additionalInfo)
           
 void setRequestText(java.lang.String text, XBUSSystem source)
          Sets the text of the incoming 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

NotifyErrorMessage

public NotifyErrorMessage(XBUSSystem source)
Creates the NotifyErrorMessage with the given source.


NotifyErrorMessage

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

Method Detail

setData

public void setData(java.lang.String className,
                    java.lang.String errorMessage,
                    java.lang.Object errorRequest,
                    java.util.Hashtable additionalInfo)
             throws XException
Throws:
XException

setRequestText

public void setRequestText(java.lang.String text,
                           XBUSSystem source)
Description copied from interface: TextMessage
Sets the text of the incoming message.

Specified by:
setRequestText in interface TextMessage
Parameters:
text - the content of the request
source - system where the request is coming from

setResponseText

public void setResponseText(java.lang.String text,
                            XBUSSystem destination)
Description copied from interface: TextMessage
Sets the text of the outgoing message.

Specified by:
setResponseText in interface TextMessage
Parameters:
text - the content of the response
destination - system where the response is coming from

getRequestText

public java.lang.String getRequestText(XBUSSystem system)
Description copied from interface: TextMessage
Gets the text from an incomimg message.

Specified by:
getRequestText in interface TextMessage
Parameters:
system - reference to the system for which the message is meant
Returns:
the content of the request

getResponseText

public java.lang.String getResponseText()
Description copied from interface: TextMessage
Gets the text of the outgoing message.

Specified by:
getResponseText in interface TextMessage
Returns:
the content of the response

getAdditionalInfo

public java.util.Hashtable getAdditionalInfo()
Returns the additionalInfo.

Returns:
Hashtable

getErrorMessage

public java.lang.String getErrorMessage()
Returns the errorMessage.

Returns:
String

getErrorRequest

public java.lang.Object getErrorRequest()
Returns the errorRequest.

Returns:
Object

getClassName

public java.lang.String getClassName()
Returns the className.

Returns:
String