org.mortbay.cometd.client
Class BayeuxClient.Handshake

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


Nested Class Summary
 
Nested classes/interfaces inherited from class org.mortbay.jetty.client.HttpExchange
HttpExchange.CachedExchange, HttpExchange.ContentExchange
 
Field Summary
static String __HANDSHAKE
           
 
Fields inherited from class org.mortbay.jetty.client.ContentExchange
_contentLength, _encoding, _fileForUpload, _responseContent, _responseStatus
 
Fields inherited from class org.mortbay.jetty.client.CachedExchange
_responseFields
 
Fields inherited from class org.mortbay.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(Throwable ex)
           
protected  void onException(Throwable ex)
           
protected  void onExpire()
           
protected  void onResponseComplete()
           
 
Methods inherited from class org.mortbay.cometd.client.BayeuxClient.Exchange
getBackoffRetries, incBackoffRetries, onResponseHeader, onResponseStatus, recycle, resend, setJsonOut, setMessage, setMessages
 
Methods inherited from class org.mortbay.jetty.client.ContentExchange
getFileForUpload, getResponseBytes, getResponseContent, getResponseStatus, onResponseContent, onRetry, setFileForUpload, writeResponseBytesTo
 
Methods inherited from class org.mortbay.jetty.client.CachedExchange
getResponseFields
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

__HANDSHAKE

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

onResponseComplete

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

onExpire

protected void onExpire()
Overrides:
onExpire in class HttpExchange

onConnectionFailed

protected void onConnectionFailed(Throwable ex)
Overrides:
onConnectionFailed in class HttpExchange

onException

protected void onException(Throwable ex)
Overrides:
onException in class HttpExchange


Copyright © 1995-2009 Mort Bay Consulting. All Rights Reserved.