com.sun.grizzly.cometd
Interface PublishContext


public interface PublishContext

Context, passed to a PublishInterceptor.

Author:
Alexey Stashok

Method Summary
 String getChannel()
          Get publish channel
 Data getData()
          Get the published data.
 DataHandler getSenderClient()
          Get DataHandler of the client, who published the message
 DataHandler lookupClientHandler(String clientId)
          Lookup DataHandler of the client.
 Set<DataHandler> lookupClientHandlers(String channelId)
          Lookup DataHandlers of clients, which are registered on the channel
 

Method Detail

getChannel

String getChannel()
Get publish channel

Returns:
channel id (String)

getSenderClient

DataHandler getSenderClient()
Get DataHandler of the client, who published the message

Returns:
DataHandler of the client, who published the message.

lookupClientHandler

DataHandler lookupClientHandler(String clientId)
Lookup DataHandler of the client.

Parameters:
clientId -
Returns:
client's associated DataHandler

lookupClientHandlers

Set<DataHandler> lookupClientHandlers(String channelId)
Lookup DataHandlers of clients, which are registered on the channel

Parameters:
channelId -
Returns:
DataHandlers of clients, which are registered on the channel

getData

Data getData()
Get the published data.

Returns:
the published data.


Copyright © 2012 Oracle Corporation. All Rights Reserved.