|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.caucho.server.http.ConnectionCometController
public class ConnectionCometController
Public API to control a comet connection.
| Constructor Summary | |
|---|---|
ConnectionCometController(SocketLink conn,
boolean isTop,
ServletRequest request,
ServletResponse response)
|
|
| Method Summary | ||
|---|---|---|
void |
addAsyncListener(AsyncListener listener,
ServletRequest request,
ServletResponse response)
|
|
void |
addListener(AsyncListener listener)
|
|
void |
addListener(AsyncListener listener,
ServletRequest request,
ServletResponse response)
|
|
void |
close()
Closes the connection. |
|
void |
closeImpl()
|
|
void |
complete()
Complete the connection |
|
|
createListener(java.lang.Class<T> cl)
|
|
void |
dispatch()
|
|
void |
dispatch(ServletContext context,
java.lang.String path)
|
|
void |
dispatch(java.lang.String path)
|
|
java.lang.Object |
getAttribute(java.lang.String name)
Gets a request attribute. |
|
java.lang.String |
getForwardPath()
|
|
long |
getMaxIdleTime()
Gets the max idle time. |
|
ServletRequest |
getRequest()
|
|
ServletResponse |
getResponse()
|
|
long |
getTimeout()
|
|
boolean |
hasOriginalRequestAndResponse()
|
|
boolean |
isActive()
Returns true if the connection is active. |
|
boolean |
isClosed()
Returns true if the connection is active. |
|
boolean |
isComet()
Returns true for an active comet connection. |
|
boolean |
isComplete()
Returns true if the connection is complete. |
|
boolean |
isDuplex()
Returns true for a duplex controller |
|
boolean |
isTimeout()
Return true if timed out |
|
void |
onComplete()
Called when the connection closes |
|
void |
onTimeout()
Called when the connection times out |
|
void |
removeAttribute(java.lang.String name)
Remove a request attribute. |
|
void |
setAsyncListenerNode(AsyncListenerNode node)
Sets the async listener |
|
void |
setAttribute(java.lang.String name,
java.lang.Object value)
Sets a request attribute. |
|
void |
setMaxIdleTime(long idleTime)
Sets the max idle time. |
|
void |
setTimeout(long timeout)
|
|
void |
start(java.lang.Runnable task)
|
|
void |
startResume()
Suspend the connection on the next request |
|
void |
timeout()
Sets the timeout. |
|
java.lang.String |
toString()
|
|
boolean |
wake()
Wakes the connection. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ConnectionCometController(SocketLink conn,
boolean isTop,
ServletRequest request,
ServletResponse response)
| Method Detail |
|---|
public void setMaxIdleTime(long idleTime)
setMaxIdleTime in interface CometControllerpublic long getMaxIdleTime()
getMaxIdleTime in interface CometControllerpublic final boolean isComplete()
public final void complete()
public void onTimeout()
SocketLinkCometListener
onTimeout in interface SocketLinkCometListenerpublic void onComplete()
SocketLinkCometListener
onComplete in interface SocketLinkCometListenerpublic final void startResume()
public final boolean wake()
wake in interface CometControllerpublic boolean isDuplex()
public final void timeout()
public final boolean isTimeout()
public final boolean isActive()
public boolean isComet()
public void setAsyncListenerNode(AsyncListenerNode node)
public void addAsyncListener(AsyncListener listener,
ServletRequest request,
ServletResponse response)
public void addListener(AsyncListener listener)
public void addListener(AsyncListener listener,
ServletRequest request,
ServletResponse response)
public <T extends AsyncListener> T createListener(java.lang.Class<T> cl)
throws ServletException
ServletExceptionpublic void setTimeout(long timeout)
public long getTimeout()
public java.lang.Object getAttribute(java.lang.String name)
getAttribute in interface CometController
public void setAttribute(java.lang.String name,
java.lang.Object value)
setAttribute in interface CometControllerpublic void removeAttribute(java.lang.String name)
removeAttribute in interface CometControllerpublic final boolean isClosed()
isClosed in interface CometControllerpublic ServletRequest getRequest()
public ServletResponse getResponse()
public boolean hasOriginalRequestAndResponse()
public java.lang.String getForwardPath()
public void dispatch()
public void dispatch(java.lang.String path)
public void dispatch(ServletContext context,
java.lang.String path)
public void start(java.lang.Runnable task)
public void close()
close in interface CometControllerpublic void closeImpl()
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||