org.cometd.oort
Class OortComet

java.lang.Object
  extended by org.cometd.common.AbstractClientSession
      extended by org.cometd.client.BayeuxClient
          extended by org.cometd.oort.OortComet
All Implemented Interfaces:
Bayeux, ClientSession, Session, TransportListener

public class OortComet
extends BayeuxClient

Oort Comet client.

A BayeuxClient that connects the local Oort comet server to a remote Oort comet server.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.cometd.client.BayeuxClient
BayeuxClient.ClientSessionChannel, BayeuxClient.State
 
Nested classes/interfaces inherited from class org.cometd.common.AbstractClientSession
AbstractClientSession.AbstractSessionChannel, AbstractClientSession.Handler
 
Nested classes/interfaces inherited from interface org.cometd.bayeux.client.ClientSession
ClientSession.Extension
 
Field Summary
protected  java.lang.String _cometSecret
           
protected  java.lang.String _cometUrl
           
protected  Oort _oort
           
 
Fields inherited from class org.cometd.client.BayeuxClient
_scheduler, BAYEUX_VERSION
 
Fields inherited from class org.cometd.common.AbstractClientSession
_attributes, _batch, _channels, _extensions, _idGen, _wild
 
Method Summary
 void onConnectException(java.lang.Throwable x)
           
 void onException(java.lang.Throwable x)
           
 void onExpire()
           
 void onMessages(java.util.List<Message.Mutable> messages)
           
 void onProtocolError(java.lang.String info)
           
 void subscribe(java.lang.String id)
           
 
Methods inherited from class org.cometd.client.BayeuxClient
customize, disconnect, doDisconnected, doSend, getAllowedTransports, getCookie, getId, getKnownTransportNames, getOption, getOptionNames, getOptions, getTransport, handshake, handshake, handshake, handshake, isConnected, newChannel, newChannelId, newMessage, processConnect, processDisconnect, processHandshake, receive, send, sendBatch, setCookie, setCookie, setOption, toString, updateTransport, waitFor
 
Methods inherited from class org.cometd.common.AbstractClientSession
addExtension, batch, endBatch, getAttribute, getAttributeNames, getChannel, receive, removeAttribute, setAttribute, startBatch
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.cometd.bayeux.client.ClientSession
addExtension, getChannel
 
Methods inherited from interface org.cometd.bayeux.Session
batch, endBatch, getAttribute, getAttributeNames, removeAttribute, setAttribute, startBatch
 

Field Detail

_oort

protected Oort _oort

_cometUrl

protected java.lang.String _cometUrl

_cometSecret

protected java.lang.String _cometSecret
Method Detail

subscribe

public void subscribe(java.lang.String id)

onException

public void onException(java.lang.Throwable x)
Specified by:
onException in interface TransportListener
Overrides:
onException in class BayeuxClient
See Also:
BayeuxClient.onException(java.lang.Throwable)

onExpire

public void onExpire()
Specified by:
onExpire in interface TransportListener
Overrides:
onExpire in class BayeuxClient
See Also:
BayeuxClient.onExpire()

onMessages

public void onMessages(java.util.List<Message.Mutable> messages)
Specified by:
onMessages in interface TransportListener
Overrides:
onMessages in class BayeuxClient
See Also:
BayeuxClient.onMessages(java.util.List)

onProtocolError

public void onProtocolError(java.lang.String info)
Specified by:
onProtocolError in interface TransportListener
Overrides:
onProtocolError in class BayeuxClient
See Also:
BayeuxClient.onProtocolError(java.lang.String)

onConnectException

public void onConnectException(java.lang.Throwable x)
Specified by:
onConnectException in interface TransportListener
Overrides:
onConnectException in class BayeuxClient
See Also:
BayeuxClient.onConnectException(java.lang.Throwable)


Copyright © 2010 Dojo Foundation. All Rights Reserved.