net.sf.xbus.technical.java
Class JavaReceiver

java.lang.Object
  extended by net.sf.xbus.technical.java.JavaReceiver
All Implemented Interfaces:
Receiver

public class JavaReceiver
extends java.lang.Object
implements Receiver

The class JavaReceiver receives a request via a call of its receive method. It creates a Message -object and calls the application-layer.


Constructor Summary
JavaReceiver()
           
 
Method Summary
 java.lang.String getType()
          A Receiver can receive data either as a String or as an Object from a neighboring system.
 java.lang.Object receive(java.lang.String system, java.lang.Object request)
          Receives a request and returns a response.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaReceiver

public JavaReceiver()
Method Detail

receive

public java.lang.Object receive(java.lang.String system,
                                java.lang.Object request)
                         throws XException
Receives a request and returns a response.

Throws:
XException

getType

public java.lang.String getType()
Description copied from interface: Receiver
A Receiver can receive data either as a String or as an Object from a neighboring system.

Specified by:
getType in interface Receiver