Modifier and Type | Method and Description |
---|---|
ServerSession |
RemoteCall.Caller.getServerSession() |
Modifier and Type | Method and Description |
---|---|
ServerSession |
LocalSession.getServerSession() |
ServerSession |
BayeuxServer.getSession(String clientId) |
Modifier and Type | Method and Description |
---|---|
List<ServerSession> |
BayeuxServer.getSessions() |
Set<ServerSession> |
ServerChannel.getSubscribers() |
Modifier and Type | Method and Description |
---|---|
void |
ServerSession.AddListener.added(ServerSession session)
Deprecated.
Callback method invoked when the session is added to a
BayeuxServer . |
void |
ServerSession.AddedListener.added(ServerSession session,
ServerMessage message)
Callback method invoked when the session is added to a
BayeuxServer . |
default void |
ServerSession.AddListener.added(ServerSession session,
ServerMessage message)
Deprecated.
|
Authorizer.Result |
Authorizer.authorize(Authorizer.Operation operation,
ChannelId channel,
ServerSession session,
ServerMessage message)
Blocking version of
Authorizer.authorize(Operation, ChannelId, ServerSession, ServerMessage, Promise) . |
default void |
Authorizer.authorize(Authorizer.Operation operation,
ChannelId channel,
ServerSession session,
ServerMessage message,
Promise<Authorizer.Result> promise)
Callback invoked to authorize the given
operation on the given channel . |
default boolean |
SecurityPolicy.canCreate(BayeuxServer server,
ServerSession session,
String channelId,
ServerMessage message)
|
default void |
SecurityPolicy.canCreate(BayeuxServer server,
ServerSession session,
String channelId,
ServerMessage message,
Promise<Boolean> promise)
Checks if a message should be allowed to create a new channel.
|
default boolean |
SecurityPolicy.canHandshake(BayeuxServer server,
ServerSession session,
ServerMessage message)
Blocking version of
SecurityPolicy.canHandshake(BayeuxServer, ServerSession, ServerMessage, Promise) . |
default void |
SecurityPolicy.canHandshake(BayeuxServer server,
ServerSession session,
ServerMessage message,
Promise<Boolean> promise)
Checks if a handshake message should be accepted.
|
default boolean |
SecurityPolicy.canPublish(BayeuxServer server,
ServerSession session,
ServerChannel channel,
ServerMessage message)
|
default void |
SecurityPolicy.canPublish(BayeuxServer server,
ServerSession session,
ServerChannel channel,
ServerMessage message,
Promise<Boolean> promise)
Checks if a client can publish a message to a channel.
|
default boolean |
SecurityPolicy.canSubscribe(BayeuxServer server,
ServerSession session,
ServerChannel channel,
ServerMessage message)
|
default void |
SecurityPolicy.canSubscribe(BayeuxServer server,
ServerSession session,
ServerChannel channel,
ServerMessage message,
Promise<Boolean> promise)
Checks if a subscribe message from a client is allowed to subscribe to a channel.
|
void |
ServerSession.DeQueueListener.deQueue(ServerSession session,
Queue<ServerMessage> queue)
Callback invoked to notify that the queue of messages is about to be sent to the
remote client.
|
default void |
ServerSession.DeQueueListener.deQueue(ServerSession session,
Queue<ServerMessage> queue,
List<ServerMessage.Mutable> replies)
Callback invoked to notify that the queue of messages and the message replies are
about to be sent to the remote client.
|
default void |
ServerSession.Extension.incoming(ServerSession session,
ServerMessage.Mutable message,
Promise<Boolean> promise)
Callback method invoked every time a message is incoming.
|
default void |
BayeuxServer.Extension.incoming(ServerSession from,
ServerMessage.Mutable message,
Promise<Boolean> promise)
Callback method invoked every time a message is incoming.
|
default boolean |
ServerChannel.MessageListener.onMessage(ServerSession sender,
ServerChannel channel,
ServerMessage.Mutable message)
|
default void |
ServerChannel.MessageListener.onMessage(ServerSession sender,
ServerChannel channel,
ServerMessage.Mutable message,
Promise<Boolean> promise)
Callback invoked when a message is being published.
|
default boolean |
ServerSession.MessageListener.onMessage(ServerSession session,
ServerSession sender,
ServerMessage message)
|
default void |
ServerSession.MessageListener.onMessage(ServerSession session,
ServerSession sender,
ServerMessage message,
Promise<Boolean> promise)
Callback invoked when a message is sent.
|
default void |
ServerSession.HeartBeatListener.onResumed(ServerSession session,
ServerMessage message,
boolean timeout)
Callback invoked to notify that a
/meta/connect message has been resumed. |
default void |
ServerSession.HeartBeatListener.onSuspended(ServerSession session,
ServerMessage message,
long timeout)
Callback invoked to notify that a
/meta/connect message has been suspended. |
default void |
BayeuxServer.Extension.outgoing(ServerSession from,
ServerSession to,
ServerMessage.Mutable message,
Promise<Boolean> promise)
Callback method invoked every time a message is outgoing.
|
default void |
ServerSession.Extension.outgoing(ServerSession sender,
ServerSession session,
ServerMessage.Mutable message,
Promise<ServerMessage.Mutable> promise)
Callback method invoked every time a message is outgoing.
|
void |
ServerSession.QueueListener.queued(ServerSession sender,
ServerMessage message)
Callback invoked when a message is queued in the session queue.
|
boolean |
ServerSession.MaxQueueListener.queueMaxed(ServerSession session,
Queue<ServerMessage> queue,
ServerSession sender,
Message message)
Deprecated.
Callback invoked to notify when the message queue is exceeding the value
configured for the transport with the option "maxQueue".
|
boolean |
ServerSession.QueueMaxedListener.queueMaxed(ServerSession session,
Queue<ServerMessage> queue,
ServerSession sender,
ServerMessage message)
Callback invoked to notify when the message queue is exceeding the value
configured for the transport with the option "maxQueue".
|
default boolean |
ServerSession.MaxQueueListener.queueMaxed(ServerSession session,
Queue<ServerMessage> queue,
ServerSession sender,
ServerMessage message)
Deprecated.
|
default boolean |
ServerSession.Extension.rcv(ServerSession session,
ServerMessage.Mutable message)
Blocking version of
ServerSession.Extension.incoming(ServerSession, ServerMessage.Mutable, Promise)
for non-meta messages. |
default boolean |
BayeuxServer.Extension.rcv(ServerSession from,
ServerMessage.Mutable message)
Blocking version of
BayeuxServer.Extension.incoming(ServerSession, ServerMessage.Mutable, Promise)
for non-meta messages. |
default boolean |
ServerSession.Extension.rcvMeta(ServerSession session,
ServerMessage.Mutable message)
Blocking version of
ServerSession.Extension.incoming(ServerSession, ServerMessage.Mutable, Promise)
for meta messages. |
default boolean |
BayeuxServer.Extension.rcvMeta(ServerSession from,
ServerMessage.Mutable message)
Blocking version of
BayeuxServer.Extension.incoming(ServerSession, ServerMessage.Mutable, Promise)
for meta messages. |
void |
ServerSession.RemoveListener.removed(ServerSession session,
boolean timeout)
Deprecated.
Callback invoked when the session is removed.
|
void |
ServerSession.RemovedListener.removed(ServerSession session,
ServerMessage message,
boolean timeout)
Callback invoked when the session is removed.
|
default void |
ServerSession.RemoveListener.removed(ServerSession session,
ServerMessage message,
boolean timeout)
Deprecated.
|
boolean |
BayeuxServer.removeSession(ServerSession session)
Removes the given
session from this BayeuxServer. |
default boolean |
BayeuxServer.Extension.send(ServerSession from,
ServerSession to,
ServerMessage.Mutable message)
Blocking version of
BayeuxServer.Extension.outgoing(ServerSession, ServerSession, ServerMessage.Mutable, Promise)
for non-meta messages. |
default ServerMessage |
ServerSession.Extension.send(ServerSession sender,
ServerSession session,
ServerMessage message)
Blocking version of
ServerSession.Extension.outgoing(ServerSession, ServerSession, ServerMessage.Mutable, Promise)
for non-meta messages. |
default boolean |
BayeuxServer.Extension.sendMeta(ServerSession to,
ServerMessage.Mutable message)
Blocking version of
BayeuxServer.Extension.outgoing(ServerSession, ServerSession, ServerMessage.Mutable, Promise)
for meta messages. |
default boolean |
ServerSession.Extension.sendMeta(ServerSession sender,
ServerSession session,
ServerMessage.Mutable message)
Blocking version of
ServerSession.Extension.outgoing(ServerSession, ServerSession, ServerMessage.Mutable, Promise)
for meta messages. |
default void |
BayeuxServer.SessionListener.sessionAdded(ServerSession session,
ServerMessage message)
Callback invoked when a
ServerSession has been added to a BayeuxServer object. |
default void |
BayeuxServer.SessionListener.sessionRemoved(ServerSession session,
boolean timeout)
Deprecated.
|
default void |
BayeuxServer.SessionListener.sessionRemoved(ServerSession session,
ServerMessage message,
boolean timeout)
Callback invoked when a
ServerSession has been removed from a BayeuxServer object. |
boolean |
ServerChannel.subscribe(ServerSession session)
Subscribes the given session to this channel.
|
default void |
BayeuxServer.SubscriptionListener.subscribed(ServerSession session,
ServerChannel channel,
ServerMessage message)
Callback invoked when a
ServerSession subscribes to a ServerChannel . |
default void |
ServerChannel.SubscriptionListener.subscribed(ServerSession session,
ServerChannel channel,
ServerMessage message)
Callback invoked when the given
ServerSession subscribes to the given ServerChannel . |
boolean |
ServerChannel.unsubscribe(ServerSession session)
Unsubscribes the given session from this channel.
|
default void |
BayeuxServer.SubscriptionListener.unsubscribed(ServerSession session,
ServerChannel channel,
ServerMessage message)
Callback invoked when a
ServerSession unsubscribes from a ServerChannel . |
default void |
ServerChannel.SubscriptionListener.unsubscribed(ServerSession session,
ServerChannel channel,
ServerMessage message)
Callback invoked when the given
ServerSession unsubscribes from the given ServerChannel . |
Modifier and Type | Method and Description |
---|---|
void |
CometDLoadServer.StatisticsService.exit(ServerSession remote,
ServerMessage message) |
void |
CometDLoadServer.StatisticsService.startStatistics(ServerSession remote,
ServerMessage message) |
void |
CometDLoadServer.StatisticsService.stopStatistics(ServerSession remote,
ServerMessage message) |
Modifier and Type | Method and Description |
---|---|
void |
ChatService.handleMembership(ServerSession client,
ServerMessage message) |
void |
CometDDemoServlet.Monitor.monitorMeta(ServerSession session,
ServerMessage message) |
void |
CometDDemoServlet.Monitor.monitorSubscribe(ServerSession session,
ServerMessage message) |
void |
CometDDemoServlet.Monitor.monitorUnsubscribe(ServerSession session,
ServerMessage message) |
void |
ChatService.privateChat(ServerSession client,
ServerMessage message) |
Modifier and Type | Method and Description |
---|---|
ServerSession |
OortService.ServerContext.getServerSession() |
Modifier and Type | Method and Description |
---|---|
Set<ServerSession> |
Seti.disassociate(String userId)
Disassociates the given userId from all sessions.
|
Modifier and Type | Method and Description |
---|---|
boolean |
Seti.associate(String userId,
ServerSession session)
Associates the given userId to the given session.
|
boolean |
Seti.disassociate(String userId,
ServerSession session)
Disassociates the given userId from the given session.
|
boolean |
Oort.isOort(ServerSession session) |
boolean |
OortService.onMessage(ServerSession from,
ServerChannel channel,
ServerMessage.Mutable message) |
boolean |
Oort.CloudListener.onMessage(ServerSession from,
ServerChannel channel,
ServerMessage.Mutable message) |
void |
Seti.LocalLocation.removed(ServerSession session,
ServerMessage message,
boolean timeout) |
Constructor and Description |
---|
LocalLocation(String userId,
ServerSession session) |
ServerContext(ServerSession session,
ServerMessage message) |
Modifier and Type | Class and Description |
---|---|
class |
ServerSessionImpl |
Modifier and Type | Method and Description |
---|---|
ServerSession |
LocalSessionImpl.getServerSession() |
ServerSession |
AbstractService.getServerSession() |
ServerSession |
BayeuxServerImpl.getSession(String clientId) |
Modifier and Type | Method and Description |
---|---|
List<ServerSession> |
BayeuxServerImpl.getSessions() |
Set<ServerSession> |
ServerChannelImpl.getSubscribers() |
Set<ServerSession> |
ServerChannelImpl.subscribers() |
Modifier and Type | Method and Description |
---|---|
boolean |
DefaultSecurityPolicy.canCreate(BayeuxServer server,
ServerSession session,
String channelId,
ServerMessage message) |
boolean |
DefaultSecurityPolicy.canHandshake(BayeuxServer server,
ServerSession session,
ServerMessage message) |
boolean |
DefaultSecurityPolicy.canPublish(BayeuxServer server,
ServerSession session,
ServerChannel channel,
ServerMessage message) |
boolean |
DefaultSecurityPolicy.canSubscribe(BayeuxServer server,
ServerSession session,
ServerChannel channel,
ServerMessage message) |
protected void |
ServerSessionImpl.deliver1(ServerSession sender,
ServerMessage.Mutable mutable,
Promise<Boolean> promise) |
protected void |
AbstractService.doInvoke(Method method,
ServerSession session,
ServerMessage message) |
protected void |
AbstractService.exception(String method,
ServerSession session,
LocalSession local,
ServerMessage message,
Throwable x)
Handles exceptions during the invocation of a mapped method.
|
protected void |
ServerSessionImpl.extendOutgoing(ServerSession sender,
ServerMessage.Mutable message,
Promise<ServerMessage.Mutable> promise) |
protected void |
BayeuxServerImpl.extendOutgoing(ServerSession sender,
ServerSession session,
ServerMessage.Mutable message,
Promise<Boolean> promise) |
boolean |
BayeuxServerImpl.removeServerSession(ServerSession session,
boolean timeout) |
boolean |
BayeuxServerImpl.removeSession(ServerSession session) |
protected void |
AbstractService.send(ServerSession toClient,
String onChannel,
Object data)
Sends data to an individual remote client.
|
boolean |
ServerChannelImpl.subscribe(ServerSession session) |
boolean |
ServerChannelImpl.unsubscribe(ServerSession session) |
Modifier and Type | Method and Description |
---|---|
Authorizer.Result |
GrantAuthorizer.authorize(Authorizer.Operation operation,
ChannelId channel,
ServerSession session,
ServerMessage message) |
Modifier and Type | Method and Description |
---|---|
void |
AcknowledgedMessagesSessionExtension.deQueue(ServerSession session,
Queue<ServerMessage> queue) |
void |
AcknowledgedMessagesSessionExtension.deQueue(ServerSession session,
Queue<ServerMessage> queue,
List<ServerMessage.Mutable> replies) |
protected void |
ActivityExtension.SessionExtension.disconnect(ServerSession session) |
protected AcknowledgedMessagesSessionExtension |
AcknowledgedMessagesExtension.newSessionExtension(ServerSession session) |
protected ServerSession.Extension |
ActivityExtension.newSessionExtension(ServerSession session,
ServerMessage handshake)
Creates a new
ServerSession.Extension that monitors the activity of the given ServerSession |
default void |
AcknowledgedMessagesExtension.Listener.onBatchReceive(ServerSession session,
long batch)
Callback method invoked when a client session confirms it has received the given batch of messages.
|
default void |
AcknowledgedMessagesExtension.Listener.onBatchSend(ServerSession session,
List<ServerMessage> messages,
long batch)
Callback method invoked when a batch of message is about to be sent to a client session.
|
void |
AcknowledgedMessagesSessionExtension.queued(ServerSession sender,
ServerMessage message) |
boolean |
AcknowledgedMessagesSessionExtension.rcv(ServerSession from,
ServerMessage.Mutable message) |
boolean |
BinaryExtension.rcv(ServerSession from,
ServerMessage.Mutable message) |
boolean |
ActivityExtension.SessionExtension.rcv(ServerSession session,
ServerMessage.Mutable message) |
boolean |
BinarySessionExtension.rcv(ServerSession session,
ServerMessage.Mutable message) |
boolean |
AcknowledgedMessagesSessionExtension.rcvMeta(ServerSession session,
ServerMessage.Mutable message) |
boolean |
TimesyncExtension.rcvMeta(ServerSession from,
ServerMessage.Mutable message) |
boolean |
ActivityExtension.rcvMeta(ServerSession session,
ServerMessage.Mutable message) |
boolean |
ActivityExtension.SessionExtension.rcvMeta(ServerSession session,
ServerMessage.Mutable message) |
boolean |
AcknowledgedMessagesExtension.rcvMeta(ServerSession remote,
ServerMessage.Mutable message) |
boolean |
BinaryExtension.send(ServerSession from,
ServerSession to,
ServerMessage.Mutable message) |
boolean |
TimestampExtension.send(ServerSession from,
ServerSession to,
ServerMessage.Mutable message) |
ServerMessage |
AcknowledgedMessagesSessionExtension.send(ServerSession sender,
ServerSession session,
ServerMessage message) |
ServerMessage |
ActivityExtension.SessionExtension.send(ServerSession sender,
ServerSession session,
ServerMessage message) |
ServerMessage |
BinarySessionExtension.send(ServerSession sender,
ServerSession session,
ServerMessage message) |
boolean |
TimesyncExtension.sendMeta(ServerSession session,
ServerMessage.Mutable message) |
boolean |
TimestampExtension.sendMeta(ServerSession to,
ServerMessage.Mutable message) |
boolean |
AcknowledgedMessagesSessionExtension.sendMeta(ServerSession sender,
ServerSession to,
ServerMessage.Mutable message) |
boolean |
ActivityExtension.SessionExtension.sendMeta(ServerSession sender,
ServerSession session,
ServerMessage.Mutable message) |
Constructor and Description |
---|
AcknowledgedMessagesSessionExtension(ServerSession session) |
Modifier and Type | Method and Description |
---|---|
Object |
JSONDataFilter.filter(ServerSession session,
ServerChannel channel,
Object data) |
Object |
DataFilter.filter(ServerSession session,
ServerChannel channel,
Object data)
Modifies the given message data.
|
protected Object |
JSONDataFilter.filterArray(ServerSession session,
ServerChannel channel,
Object array) |
protected Object |
JSONDataFilter.filterBoolean(ServerSession session,
ServerChannel channel,
Boolean bool) |
protected Object |
JSONDataFilter.filterCollection(ServerSession session,
ServerChannel channel,
Collection<Object> collection) |
protected Object |
JSONDataFilter.filterList(ServerSession session,
ServerChannel channel,
List<Object> list) |
protected Object |
JSONDataFilter.filterMap(ServerSession session,
ServerChannel channel,
Map<String,Object> map) |
protected Object |
JSONDataFilter.filterNumber(ServerSession session,
ServerChannel channel,
Number number) |
protected Object |
JSONDataFilter.filterObject(ServerSession session,
ServerChannel channel,
Object data) |
protected Object |
JSONDataFilter.filterString(ServerSession session,
ServerChannel channel,
String string) |
protected Object |
RegexFilter.filterString(ServerSession session,
ServerChannel channel,
String string) |
protected Object |
NoMarkupFilter.filterString(ServerSession session,
ServerChannel channel,
String string) |
protected Object |
NoScriptsFilter.filterString(ServerSession session,
ServerChannel channel,
String string) |
boolean |
DataFilterMessageListener.onMessage(ServerSession from,
ServerChannel channel,
ServerMessage.Mutable message) |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
AbstractWebSocketEndPoint.send(ServerSession session,
String data,
org.eclipse.jetty.util.Callback callback) |
Modifier and Type | Method and Description |
---|---|
protected void |
JettyWebSocketEndPoint.send(ServerSession session,
String data,
org.eclipse.jetty.util.Callback callback) |
Copyright © 2008–2024 The CometD Project. All rights reserved.