org.cometd.client
Class BayeuxClient.Handshake

java.lang.Object
  extended by org.eclipse.jetty.client.HttpExchange
      extended by org.eclipse.jetty.client.CachedExchange
          extended by org.eclipse.jetty.client.ContentExchange
              extended by org.cometd.client.BayeuxClient.Exchange
                  extended by org.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.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.eclipse.jetty.client.HttpExchange
org.eclipse.jetty.client.HttpExchange.CachedExchange, org.eclipse.jetty.client.HttpExchange.ContentExchange
 
Field Summary
static java.lang.String __HANDSHAKE
           
 
Fields inherited from class org.eclipse.jetty.client.HttpExchange
STATUS_COMPLETED, STATUS_EXCEPTED, STATUS_EXPIRED, STATUS_PARSING_CONTENT, STATUS_PARSING_HEADERS, STATUS_SENDING_REQUEST, STATUS_START, STATUS_WAITING_FOR_COMMIT, STATUS_WAITING_FOR_CONNECTION, STATUS_WAITING_FOR_RESPONSE
 
Method Summary
protected  void onConnectionFailed(java.lang.Throwable ex)
           
protected  void onException(java.lang.Throwable ex)
           
protected  void onExpire()
           
protected  void onResponseComplete()
           
 
Methods inherited from class org.cometd.client.BayeuxClient.Exchange
getBackoffRetries, incBackoffRetries, onResponseHeader, onResponseStatus, recycle, resend, setJson, setMessage
 
Methods inherited from class org.eclipse.jetty.client.ContentExchange
getFileForUpload, getResponseContent, onResponseContent, onRetry, setFileForUpload
 
Methods inherited from class org.eclipse.jetty.client.CachedExchange
getResponseFields, getResponseStatus
 
Methods inherited from class org.eclipse.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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

__HANDSHAKE

public static final java.lang.String __HANDSHAKE
See Also:
Constant Field Values
Method Detail

onResponseComplete

protected void onResponseComplete()
                           throws java.io.IOException
Overrides:
onResponseComplete in class BayeuxClient.Exchange
Throws:
java.io.IOException

onExpire

protected void onExpire()
Overrides:
onExpire in class org.eclipse.jetty.client.HttpExchange

onConnectionFailed

protected void onConnectionFailed(java.lang.Throwable ex)
Overrides:
onConnectionFailed in class org.eclipse.jetty.client.HttpExchange

onException

protected void onException(java.lang.Throwable ex)
Overrides:
onException in class org.eclipse.jetty.client.HttpExchange


Copyright © 2009 Dojo Foundation. All Rights Reserved.