org.cometd.common
Class AbstractClientSession.AbstractSessionChannel
java.lang.Object
org.cometd.common.AbstractClientSession.AbstractSessionChannel
- All Implemented Interfaces:
- Channel, ClientSessionChannel
- Enclosing class:
- AbstractClientSession
protected abstract static class AbstractClientSession.AbstractSessionChannel
- extends java.lang.Object
- implements ClientSessionChannel
A channel scoped to a ClientSession.
|
Field Summary |
protected org.eclipse.jetty.util.log.Logger |
logger
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
logger
protected final org.eclipse.jetty.util.log.Logger logger
AbstractClientSession.AbstractSessionChannel
protected AbstractClientSession.AbstractSessionChannel(ChannelId id)
getChannelId
public ChannelId getChannelId()
- Specified by:
getChannelId in interface Channel
addListener
public void addListener(ClientSessionChannel.ClientSessionChannelListener listener)
- Specified by:
addListener in interface ClientSessionChannel
removeListener
public void removeListener(ClientSessionChannel.ClientSessionChannelListener listener)
- Specified by:
removeListener in interface ClientSessionChannel
sendSubscribe
protected abstract void sendSubscribe()
sendUnSubscribe
protected abstract void sendUnSubscribe()
subscribe
public void subscribe(ClientSessionChannel.MessageListener listener)
- Specified by:
subscribe in interface ClientSessionChannel
unsubscribe
public void unsubscribe(ClientSessionChannel.MessageListener listener)
- Specified by:
unsubscribe in interface ClientSessionChannel
unsubscribe
public void unsubscribe()
- Specified by:
unsubscribe in interface ClientSessionChannel
getId
public java.lang.String getId()
- Specified by:
getId in interface Channel
isDeepWild
public boolean isDeepWild()
- Specified by:
isDeepWild in interface Channel
isMeta
public boolean isMeta()
- Specified by:
isMeta in interface Channel
isService
public boolean isService()
- Specified by:
isService in interface Channel
isWild
public boolean isWild()
- Specified by:
isWild in interface Channel
notifyMessageListeners
protected void notifyMessageListeners(Message message)
setAttribute
public void setAttribute(java.lang.String name,
java.lang.Object value)
- Specified by:
setAttribute in interface Channel
getAttribute
public java.lang.Object getAttribute(java.lang.String name)
- Specified by:
getAttribute in interface Channel
getAttributeNames
public java.util.Set<java.lang.String> getAttributeNames()
- Specified by:
getAttributeNames in interface Channel
removeAttribute
public java.lang.Object removeAttribute(java.lang.String name)
- Specified by:
removeAttribute in interface Channel
dump
protected void dump(java.lang.StringBuilder b,
java.lang.String indent)
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
Copyright © 2008-2010 Dojo Foundation. All Rights Reserved.