com.caucho.server.connection
Class HttpConnectionController

java.lang.Object
  extended by com.caucho.server.connection.ConnectionController
      extended by com.caucho.server.connection.HttpConnectionController
All Implemented Interfaces:
CometController

public class HttpConnectionController
extends ConnectionController
implements CometController

Public API to control a comet connection.


Constructor Summary
HttpConnectionController(AbstractHttpRequest request)
           
HttpConnectionController(ServletRequest request)
           
 
Method Summary
 void close()
          Closes the connection.
 java.lang.Object getAttribute(java.lang.String name)
          Gets a request attribute.
 long getMaxIdleTime()
          Gets the max idle time.
 void removeAttribute(java.lang.String name)
          Remove a request attribute.
 void setAttribute(java.lang.String name, java.lang.Object value)
          Sets a request attribute.
 void setMaxIdleTime(long idleTime)
          Sets the max idle time.
 java.lang.String toString()
           
 
Methods inherited from class com.caucho.server.connection.ConnectionController
getConnection, isActive, isClosed, isTimeout, timeout, wake
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.caucho.servlet.comet.CometController
isClosed, wake
 

Constructor Detail

HttpConnectionController

public HttpConnectionController(ServletRequest request)

HttpConnectionController

public HttpConnectionController(AbstractHttpRequest request)
Method Detail

setMaxIdleTime

public void setMaxIdleTime(long idleTime)
Sets the max idle time.

Specified by:
setMaxIdleTime in interface CometController

getMaxIdleTime

public long getMaxIdleTime()
Gets the max idle time.

Specified by:
getMaxIdleTime in interface CometController

getAttribute

public java.lang.Object getAttribute(java.lang.String name)
Gets a request attribute.

Specified by:
getAttribute in interface CometController

setAttribute

public void setAttribute(java.lang.String name,
                         java.lang.Object value)
Sets a request attribute.

Specified by:
setAttribute in interface CometController

removeAttribute

public void removeAttribute(java.lang.String name)
Remove a request attribute.

Specified by:
removeAttribute in interface CometController

close

public void close()
Closes the connection.

Specified by:
close in interface CometController
Overrides:
close in class ConnectionController

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object