org.objectweb.jonathan.protocols.http.api

Interface HttpServerConnection

public interface HttpServerConnection

Represents a server-side connection via HTTP.

Method Summary

void
close()
Close this connection.
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 Details

close

public void close()
Close this connection.


getUrl

public String getUrl()
Get the url of this connection


send

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

Parameters:
message - the message to send


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.