org.cometd.client
Class BayeuxClient.Exchange

java.lang.Object
  extended by CachedExchange
      extended by org.cometd.client.BayeuxClient.Exchange
Direct Known Subclasses:
BayeuxClient.Connect, BayeuxClient.Handshake, BayeuxClient.Publish
Enclosing class:
BayeuxClient

protected class BayeuxClient.Exchange
extends CachedExchange

The base class for all bayeux exchanges.


Method Summary
 int getBackoff()
           
 java.lang.String getResponseContent()
           
 void incBackoff()
           
protected  void onResponseComplete()
           
protected  void onResponseContent(Buffer content)
           
protected  void onResponseHeader(Buffer name, Buffer value)
           
protected  void onResponseStatus(Buffer version, int status, Buffer reason)
           
protected  void recycle()
           
protected  void resend(boolean backoff)
           
protected  void setJson(java.lang.String json)
           
protected  void setMessage(java.lang.String message)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getResponseContent

public java.lang.String getResponseContent()
                                    throws java.io.UnsupportedEncodingException
Throws:
java.io.UnsupportedEncodingException

onResponseStatus

protected void onResponseStatus(Buffer version,
                                int status,
                                Buffer reason)
                         throws java.io.IOException
Throws:
java.io.IOException

onResponseContent

protected void onResponseContent(Buffer content)
                          throws java.io.IOException
Throws:
java.io.IOException

getBackoff

public int getBackoff()

incBackoff

public void incBackoff()

setMessage

protected void setMessage(java.lang.String message)

setJson

protected void setJson(java.lang.String json)

onResponseHeader

protected void onResponseHeader(Buffer name,
                                Buffer value)
                         throws java.io.IOException
Throws:
java.io.IOException

onResponseComplete

protected void onResponseComplete()
                           throws java.io.IOException
Throws:
java.io.IOException

resend

protected void resend(boolean backoff)

recycle

protected void recycle()


Copyright © 2011 Dojo Foundation. All Rights Reserved.