org.mortbay.cometd.client
Class BayeuxClient.Exchange
java.lang.Object
org.mortbay.jetty.client.HttpExchange
org.mortbay.jetty.client.CachedExchange
org.mortbay.jetty.client.ContentExchange
org.mortbay.cometd.client.BayeuxClient.Exchange
- Direct Known Subclasses:
- BayeuxClient.Connect, BayeuxClient.Handshake, BayeuxClient.Publish
- Enclosing class:
- BayeuxClient
protected class BayeuxClient.Exchange
- extends ContentExchange
The base class for all bayeux exchanges.
Methods inherited from class org.mortbay.jetty.client.HttpExchange |
addRequestHeader, addRequestHeader, cancel, configureListeners, getAddress, getEventListener, getMethod, getRequestContent, getRequestContentChunk, getRequestContentSource, getRequestFields, getRetryStatus, getScheme, getStatus, getTimeout, getURI, getVersion, isDone, onConnectionFailed, onException, onExpire, onRequestCommitted, onRequestComplete, onResponseHeaderComplete, reset, setAddress, setConfigureListeners, setEventListener, setMethod, setRequestContent, setRequestContentSource, setRequestContentType, setRequestHeader, setRequestHeader, setRetryStatus, setScheme, setTimeout, setURI, setURL, setVersion, setVersion, toString, waitForDone, waitForStatus |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
getBackoff
public int getBackoff()
incBackoff
public void incBackoff()
setMessage
protected void setMessage(java.lang.String message)
setJson
protected void setJson(java.lang.String json)
onResponseStatus
protected void onResponseStatus(Buffer version,
int status,
Buffer reason)
throws java.io.IOException
- Description copied from class:
HttpExchange
- Called when a response status line has been received.
- Overrides:
onResponseStatus
in class ContentExchange
- Parameters:
version
- HTTP versionstatus
- HTTP status codereason
- HTTP status code reason string
- Throws:
java.io.IOException
onResponseHeader
protected void onResponseHeader(Buffer name,
Buffer value)
throws java.io.IOException
- Description copied from class:
HttpExchange
- Called for each response header received
- Overrides:
onResponseHeader
in class ContentExchange
- Parameters:
name
- header namevalue
- header value
- Throws:
java.io.IOException
onResponseComplete
protected void onResponseComplete()
throws java.io.IOException
- Description copied from class:
HttpExchange
- Called when the entire response has been received
- Overrides:
onResponseComplete
in class HttpExchange
- Throws:
java.io.IOException
resend
protected void resend(boolean backoff)
recycle
protected void recycle()
Copyright © 1995-2010 Mort Bay Consulting. All Rights Reserved.