org.mortbay.cometd.client
Class BayeuxClient.Handshake
java.lang.Object
org.mortbay.jetty.client.HttpExchange
org.mortbay.jetty.client.CachedExchange
org.mortbay.jetty.client.ContentExchange
org.mortbay.cometd.client.BayeuxClient.Exchange
org.mortbay.cometd.client.BayeuxClient.Handshake
- Enclosing class:
- BayeuxClient
protected class BayeuxClient.Handshake
- extends BayeuxClient.Exchange
The Bayeux handshake exchange. Negotiates a client Id and initializes the
protocol.
Method Summary |
protected void |
onConnectionFailed(Throwable ex)
Called when an exception was thrown during an attempt to open a connection |
protected void |
onException(Throwable ex)
Called when any other exception occurs during handling for the exchange |
protected void |
onExpire()
Called when no response has been received within the timeout. |
protected void |
onResponseComplete()
Called when the entire response has been received |
Methods inherited from class org.mortbay.jetty.client.HttpExchange |
addRequestHeader, addRequestHeader, cancel, configureListeners, getAddress, getEventListener, getMethod, getRequestContent, getRequestContentChunk, getRequestContentSource, getRequestFields, getRetryStatus, getScheme, getStatus, getURI, getVersion, isDone, onRequestCommitted, onRequestComplete, onResponseHeaderComplete, reset, setAddress, setConfigureListeners, setEventListener, setMethod, setRequestContent, setRequestContentSource, setRequestContentType, setRequestHeader, setRequestHeader, setRetryStatus, setScheme, setURI, setURL, setVersion, setVersion, toString, waitForDone, waitForStatus |
__HANDSHAKE
public static final String __HANDSHAKE
- See Also:
- Constant Field Values
onResponseComplete
protected void onResponseComplete()
throws IOException
- Description copied from class:
HttpExchange
- Called when the entire response has been received
- Overrides:
onResponseComplete
in class BayeuxClient.Exchange
- Throws:
IOException
onExpire
protected void onExpire()
- Description copied from class:
HttpExchange
- Called when no response has been received within the timeout.
- Overrides:
onExpire
in class HttpExchange
onConnectionFailed
protected void onConnectionFailed(Throwable ex)
- Description copied from class:
HttpExchange
- Called when an exception was thrown during an attempt to open a connection
- Overrides:
onConnectionFailed
in class HttpExchange
onException
protected void onException(Throwable ex)
- Description copied from class:
HttpExchange
- Called when any other exception occurs during handling for the exchange
- Overrides:
onException
in class HttpExchange
Copyright © 1995-2009 Mort Bay Consulting. All Rights Reserved.