|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectat.spardat.xma.boot.transport.Transport
this is the interface for the low level xma transport layer used on xma-client side. At this time only an implementation for HTTP is provided, but additional protocols may be added in the future.
| Constructor Summary | |
Transport()
|
|
| Method Summary | |
abstract byte[] |
callServerEvent(IRtXMASessionClient session,
XMA_URI eventHandler,
byte[] input)
Calls a server side event. |
abstract Result |
getResource(IRtXMASessionClient session,
XMA_URI resource,
long modifiedSince,
java.lang.String etag)
Loads a resource from a server if it has been changed since modifiedSince. |
static Transport |
getTransport()
Get an implementation of Transport. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Transport()
| Method Detail |
public abstract Result getResource(IRtXMASessionClient session,
XMA_URI resource,
long modifiedSince,
java.lang.String etag)
throws CommunicationException
session - the session this event belongs to. may be null.resource - unique identification of the resource.modifiedSince - timestamp of last modification.
ConnectException - if anything goes wrong in the communication with the server, befor
the server changed its state.
ServerException - if anything goes wrong in the communication with the server, after
the server propably changed its state.
CommunicationException
public abstract byte[] callServerEvent(IRtXMASessionClient session,
XMA_URI eventHandler,
byte[] input)
throws CommunicationException
session - the session this event belongs to.eventHandler - unique identification of the eventhandler.input - All data that can be read from this InputStream is propagated to the eventhandler.
ConnectException - if anything goes wrong in the communication with the server, befor
the server changed its state.
ServerException - if anything goes wrong in the communication with the server, after
the server propably changed its state.
CommunicationExceptionpublic static Transport getTransport()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||