org.objectweb.jonathan.apis.protocols.http
Interface HttpServerConnection


public interface HttpServerConnection

Represents a server-side connection via HTTP.


Method Summary
 void close()
          Close this connection.
 java.lang.String getUrl()
          Get the url of this connection
 void send(Marshaller message)
          Send a message to the distant peer.
 void setCallbackService(ServerCallback cbs)
          Associate a callback service (defined in the Direct Proxy bundle) to the connection.
 

Method Detail

setCallbackService

public void setCallbackService(ServerCallback cbs)
Associate a callback service (defined in the Direct Proxy bundle) to the connection. Callback services are akin to Session_Low implementations, with different signatures though.

Parameters:
cbs - the CallbackService to associate to this connection.

close

public void close()
Close this connection.


send

public void send(Marshaller message)
Send a message to the distant peer.

Parameters:
message - the message to send

getUrl

public java.lang.String getUrl()
Get the url of this connection