org.exoplatform.ws.frameworks.cometd.transport
Class RESTContinuationService
java.lang.Object
org.exoplatform.ws.frameworks.cometd.transport.RESTContinuationService
- All Implemented Interfaces:
- ResourceContainer
public class RESTContinuationService
- extends java.lang.Object
- implements ResourceContainer
Created by The eXo Platform SAS.
- Version:
- $Id: $
- Author:
- Vitaly Parfonov
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RESTContinuationService
public RESTContinuationService(ContinuationService continuationService)
getToken
public Response getToken(java.lang.String exoID)
- Parameters:
exoID - the id of client.
- Returns:
- userToken for user
isSubscribed
public Response isSubscribed(java.lang.String exoID,
java.lang.String channel)
- Parameters:
exoID - the id of client.channel - the id of channel
- Returns:
- true if client subscribed on channel else false
hasChannel
public Response hasChannel(java.lang.String channel)
- Parameters:
channel - the id of channel
- Returns:
- true if channel exist else false
sendMessage
public Response sendMessage(DelegateMessage data)
- Parameters:
data - content message, clientId, channel.
- Returns:
- Response with status
sendBroadcastMessage
public Response sendBroadcastMessage(DelegateMessage data)
- Parameters:
data - content message, clientId, channel.
- Returns:
- Response with status
Copyright © 2011 eXo Platform SAS. All Rights Reserved.