|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.xbus.application.Adapter
public class Adapter
The Adapter
is called from receivers. He is responsible for
creating the appropriate Message
object, calling the
appropriate object and method of the application layer and logging the call
in the DBJournal
.
Constructor Summary | |
---|---|
Adapter()
|
Method Summary | |
---|---|
void |
callApplication(XBUSSystem source,
java.lang.Object request,
java.lang.String messageType)
Creates the appropriate Message object by calling the
MessageFactory and calls the appropriate object and method
of the application layer by calling the ApplicationFactory . |
static void |
callSender(Message message,
XBUSSystem destination)
Sends a message to a sender (which was generated by the SenderFactory ). |
java.lang.String |
getErrormessage()
After calling the application layer, the receiver can query the resulting error message. |
java.lang.Object |
getResponse()
After calling the application layer, the receiver can query the resulting response. |
java.lang.String |
getReturncode()
After calling the application layer, the receiver can query the resulting returncode. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Adapter()
Method Detail |
---|
public static void callSender(Message message, XBUSSystem destination) throws XException
SenderFactory
).
message
- the message to be sentdestination
- the destination where the message shall be sent to
XException
- if something goes wrongpublic void callApplication(XBUSSystem source, java.lang.Object request, java.lang.String messageType)
Message
object by calling the
MessageFactory
and calls the appropriate object and method
of the application layer by calling the ApplicationFactory
.
Finally the DBJournal
class is called for logging of the
call.
The resulting returncode and response-string can be requested afterwards with dedicated methods in this class.
public java.lang.String getReturncode()
public java.lang.Object getResponse()
public java.lang.String getErrormessage()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |