|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.xbus.protocol.Message
public class Message
Message
is the base for all classes that handle the data of
requests and responses. It contains all methods and attributes which are
independent of the application-protocol.
Constructor Summary | |
---|---|
Message(java.lang.String function,
XBUSSystem source,
java.lang.String id)
This constructor initializes the new Message with the
given parameters. |
|
Message(XBUSSystem source)
This constructor stores the source , creates an unique
identifier for the call and initializes the requestTimestamp. |
Method Summary | |
---|---|
int |
getErrorcode()
Gets the errorcode. |
java.lang.String |
getErrortext()
Gets the errortext. |
java.lang.String |
getFunction()
Gets the name of the function. |
java.lang.String |
getId()
Gets the unique id. |
java.util.Date |
getRequestTimestamp()
Gets the timestamp when this Message has been received. |
java.util.Date |
getResponseTimestamp()
Gets the timestamp when the response has been given to the neighbor-system, which has sent the request. |
java.lang.String |
getReturncode()
Gets the returncode. |
java.lang.String |
getShortname()
Gets the shortname. |
XBUSSystem |
getSource()
Gets the name of the neighbor-system that has send the message. |
void |
setErrorcode(int errorcode)
Sets the errorcode. |
void |
setErrortext(java.lang.String errortext)
Sets the errortext. |
protected void |
setFunction(java.lang.String function)
Sets the name of the function. |
protected void |
setId(java.lang.String id)
Sets the unique id. |
void |
setResponseTimestamp(java.util.Date timestamp)
Sets the timestamp when the response has been given to the neighbor-system, which has sent the request. |
void |
setReturncode(java.lang.String rc)
Sets the returncode. |
void |
setShortname(java.lang.String shortname)
Sets the shortname. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Message(XBUSSystem source)
source
, creates an unique
identifier for the call and initializes the requestTimestamp. It is used
when constructing a new Message
from the data of a
receiver.
public Message(java.lang.String function, XBUSSystem source, java.lang.String id)
Message
with the
given parameters. It is used when constructing a new Message
by converting it from another Message
.
Method Detail |
---|
public java.lang.String getId()
protected void setId(java.lang.String id)
public java.lang.String getFunction()
protected void setFunction(java.lang.String function)
public XBUSSystem getSource()
public java.util.Date getRequestTimestamp()
Message
has been received.
public java.util.Date getResponseTimestamp()
public void setResponseTimestamp(java.util.Date timestamp)
public java.lang.String getReturncode()
public void setReturncode(java.lang.String rc)
public int getErrorcode()
public void setErrorcode(int errorcode)
public java.lang.String getErrortext()
public void setErrortext(java.lang.String errortext)
public void setShortname(java.lang.String shortname)
public java.lang.String getShortname()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |