Class ServerChannelImpl
java.lang.Object
org.cometd.server.ServerChannelImpl
- All Implemented Interfaces:
org.cometd.bayeux.Channel, org.cometd.bayeux.server.ConfigurableServerChannel, org.cometd.bayeux.server.ServerChannel, org.eclipse.jetty.util.component.Dumpable
public class ServerChannelImpl
extends Object
implements org.cometd.bayeux.server.ServerChannel, org.eclipse.jetty.util.component.Dumpable
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.cometd.bayeux.server.ConfigurableServerChannel
org.cometd.bayeux.server.ConfigurableServerChannel.Initializer, org.cometd.bayeux.server.ConfigurableServerChannel.ServerChannelListenerNested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Dumpable
org.eclipse.jetty.util.component.Dumpable.DumpableContainer, org.eclipse.jetty.util.component.Dumpable.DumpAppendableNested classes/interfaces inherited from interface org.cometd.bayeux.server.ServerChannel
org.cometd.bayeux.server.ServerChannel.MessageListener, org.cometd.bayeux.server.ServerChannel.SubscriptionListener -
Field Summary
Fields inherited from interface org.cometd.bayeux.Channel
META, META_CONNECT, META_DISCONNECT, META_HANDSHAKE, META_SUBSCRIBE, META_UNSUBSCRIBE, SERVICEFields inherited from interface org.eclipse.jetty.util.component.Dumpable
LEGEND -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedServerChannelImpl(BayeuxServerImpl bayeux, org.cometd.bayeux.ChannelId id) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAuthorizer(org.cometd.bayeux.server.Authorizer authorizer) voidaddListener(org.cometd.bayeux.server.ConfigurableServerChannel.ServerChannelListener listener) protected List<org.cometd.bayeux.server.Authorizer> voiddump(Appendable out, String indent) getAttribute(String name) List<org.cometd.bayeux.server.Authorizer> org.cometd.bayeux.ChannelIdgetId()longList<org.cometd.bayeux.server.ConfigurableServerChannel.ServerChannelListener> Set<org.cometd.bayeux.server.ServerSession> booleanbooleanbooleanbooleanisLazy()booleanisMeta()booleanbooleanbooleanisWild()protected List<org.cometd.bayeux.server.ConfigurableServerChannel.ServerChannelListener> voidvoidpublish(org.cometd.bayeux.Session from, org.cometd.bayeux.server.ServerMessage.Mutable mutable, org.cometd.bayeux.Promise<Boolean> promise) voidremove()removeAttribute(String name) voidremoveAuthorizer(org.cometd.bayeux.server.Authorizer authorizer) voidremoveListener(org.cometd.bayeux.server.ConfigurableServerChannel.ServerChannelListener listener) voidsetAttribute(String name, Object value) voidsetBroadcastToPublisher(boolean broadcastToPublisher) voidsetLazy(boolean lazy) voidsetLazyTimeout(long lazyTimeout) voidsetPersistent(boolean persistent) booleansubscribe(org.cometd.bayeux.server.ServerSession session) protected booleansubscribe(ServerSessionImpl session, org.cometd.bayeux.server.ServerMessage message) Set<org.cometd.bayeux.server.ServerSession> protected booleansweep()toString()booleanunsubscribe(org.cometd.bayeux.server.ServerSession session) protected booleanunsubscribe(ServerSessionImpl session, org.cometd.bayeux.server.ServerMessage message) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.jetty.util.component.Dumpable
dump, dumpSelf
-
Constructor Details
-
ServerChannelImpl
-
-
Method Details
-
subscribe
public boolean subscribe(org.cometd.bayeux.server.ServerSession session) - Specified by:
subscribein interfaceorg.cometd.bayeux.server.ServerChannel
-
subscribe
protected boolean subscribe(ServerSessionImpl session, org.cometd.bayeux.server.ServerMessage message) -
unsubscribe
public boolean unsubscribe(org.cometd.bayeux.server.ServerSession session) - Specified by:
unsubscribein interfaceorg.cometd.bayeux.server.ServerChannel
-
unsubscribe
protected boolean unsubscribe(ServerSessionImpl session, org.cometd.bayeux.server.ServerMessage message) -
getSubscribers
- Specified by:
getSubscribersin interfaceorg.cometd.bayeux.server.ServerChannel
-
subscribers
-
isBroadcast
public boolean isBroadcast()- Specified by:
isBroadcastin interfaceorg.cometd.bayeux.Channel
-
isDeepWild
public boolean isDeepWild()- Specified by:
isDeepWildin interfaceorg.cometd.bayeux.Channel
-
isLazy
public boolean isLazy()- Specified by:
isLazyin interfaceorg.cometd.bayeux.server.ConfigurableServerChannel
-
isPersistent
public boolean isPersistent()- Specified by:
isPersistentin interfaceorg.cometd.bayeux.server.ConfigurableServerChannel
-
isWild
public boolean isWild()- Specified by:
isWildin interfaceorg.cometd.bayeux.Channel
-
setLazy
public void setLazy(boolean lazy) - Specified by:
setLazyin interfaceorg.cometd.bayeux.server.ConfigurableServerChannel
-
getLazyTimeout
public long getLazyTimeout()- Specified by:
getLazyTimeoutin interfaceorg.cometd.bayeux.server.ConfigurableServerChannel
-
setLazyTimeout
public void setLazyTimeout(long lazyTimeout) - Specified by:
setLazyTimeoutin interfaceorg.cometd.bayeux.server.ConfigurableServerChannel
-
setPersistent
public void setPersistent(boolean persistent) - Specified by:
setPersistentin interfaceorg.cometd.bayeux.server.ConfigurableServerChannel
-
addListener
public void addListener(org.cometd.bayeux.server.ConfigurableServerChannel.ServerChannelListener listener) - Specified by:
addListenerin interfaceorg.cometd.bayeux.server.ConfigurableServerChannel
-
isBroadcastToPublisher
public boolean isBroadcastToPublisher()- Specified by:
isBroadcastToPublisherin interfaceorg.cometd.bayeux.server.ConfigurableServerChannel
-
setBroadcastToPublisher
public void setBroadcastToPublisher(boolean broadcastToPublisher) - Specified by:
setBroadcastToPublisherin interfaceorg.cometd.bayeux.server.ConfigurableServerChannel
-
removeListener
public void removeListener(org.cometd.bayeux.server.ConfigurableServerChannel.ServerChannelListener listener) - Specified by:
removeListenerin interfaceorg.cometd.bayeux.server.ConfigurableServerChannel
-
getListeners
public List<org.cometd.bayeux.server.ConfigurableServerChannel.ServerChannelListener> getListeners()- Specified by:
getListenersin interfaceorg.cometd.bayeux.server.ConfigurableServerChannel
-
listeners
protected List<org.cometd.bayeux.server.ConfigurableServerChannel.ServerChannelListener> listeners() -
getChannelId
public org.cometd.bayeux.ChannelId getChannelId()- Specified by:
getChannelIdin interfaceorg.cometd.bayeux.Channel
-
getId
- Specified by:
getIdin interfaceorg.cometd.bayeux.Channel
-
isMeta
public boolean isMeta()- Specified by:
isMetain interfaceorg.cometd.bayeux.Channel
-
isService
public boolean isService()- Specified by:
isServicein interfaceorg.cometd.bayeux.Channel
-
publish
public void publish(org.cometd.bayeux.Session from, org.cometd.bayeux.server.ServerMessage.Mutable mutable, org.cometd.bayeux.Promise<Boolean> promise) - Specified by:
publishin interfaceorg.cometd.bayeux.server.ServerChannel
-
publish
-
sweep
protected boolean sweep() -
remove
public void remove()- Specified by:
removein interfaceorg.cometd.bayeux.server.ServerChannel
-
setAttribute
-
getAttribute
-
getAttributeNames
-
removeAttribute
-
addAuthorizer
public void addAuthorizer(org.cometd.bayeux.server.Authorizer authorizer) - Specified by:
addAuthorizerin interfaceorg.cometd.bayeux.server.ConfigurableServerChannel
-
removeAuthorizer
public void removeAuthorizer(org.cometd.bayeux.server.Authorizer authorizer) - Specified by:
removeAuthorizerin interfaceorg.cometd.bayeux.server.ConfigurableServerChannel
-
getAuthorizers
- Specified by:
getAuthorizersin interfaceorg.cometd.bayeux.server.ConfigurableServerChannel
-
authorizers
-
dump
- Specified by:
dumpin interfaceorg.eclipse.jetty.util.component.Dumpable- Throws:
IOException
-
toString
-