|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectat.spardat.xma.boot.transport.Transport
at.spardat.xma.boot.transport.HTTPTransport
This class implements low level transport on http transport using suns UrlConnection implementation.
| Constructor Summary | |
HTTPTransport()
Constructs a HTTPTransport. |
|
| Method Summary | |
byte[] |
callServerEvent(IRtXMASessionClient session,
XMA_URI eventHandler,
byte[] input)
Calls a server side event. |
org.apache.commons.httpclient.Cookie[] |
getCookies(java.net.URL url)
Returns all cookies which are stored for the given url. |
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 java.lang.String |
httpDate(java.util.Date date)
Converts a java.util.Date to a String using the encoding specified by
the HTTP-Specification. |
static java.lang.String |
httpDate(long ldate)
Converts a long containing a date to a String using the encoding specified by the HTTP-Specification. |
static void |
init(java.util.Properties prop)
Initializes the underlaying http-protocol-provider from the given Propterties. |
| Methods inherited from class at.spardat.xma.boot.transport.Transport |
getTransport |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public HTTPTransport()
HTTPTransport.
| Method Detail |
public static void init(java.util.Properties prop)
prop - containing properties for http and https protocolpublic static java.lang.String httpDate(java.util.Date date)
java.util.Date to a String using the encoding specified by
the HTTP-Specification. We have to wrap this task, cause we may have to change it. see also SUN-Bug_ID: 4397096
date - the date to be formated
public static java.lang.String httpDate(long ldate)
see also SUN-Bug_ID: 4397096
ldate - the milliseconds since January 1, 1970, 00:00:00 GMT.
public Result getResource(IRtXMASessionClient session,
XMA_URI resource,
long modifiedSince,
java.lang.String etag)
throws CommunicationException
Transport
getResource in class Transportsession - the session this event belongs to. may be null.resource - unique identification of the resource.modifiedSince - timestamp of last modification.
CommunicationException
public byte[] callServerEvent(IRtXMASessionClient session,
XMA_URI eventHandler,
byte[] input)
throws CommunicationException
Transport
callServerEvent in class Transportsession - 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.
CommunicationExceptionpublic org.apache.commons.httpclient.Cookie[] getCookies(java.net.URL url)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||