com.caucho.servlet
Interface DuplexContext


public interface DuplexContext

Bidirectional TCP connection based on a HTTP upgrade, e.g. WebSocket. The context and its values are not thread safe. The DuplexListener thread normally is the only thread reading from the input stream.


Method Summary
 void complete()
          Complete and close the connection.
 ServletRequest getRequest()
          Returns the original servlet request.
 ServletResponse getResponse()
          Returns the original servlet response.
 long getTimeout()
          Gets the read timeout.
 void setTimeout(long timeout)
          Sets the read timeout.
 

Method Detail

getRequest

ServletRequest getRequest()
Returns the original servlet request.


getResponse

ServletResponse getResponse()
Returns the original servlet response.


setTimeout

void setTimeout(long timeout)
Sets the read timeout.


getTimeout

long getTimeout()
Gets the read timeout.


complete

void complete()
Complete and close the connection.