Class RESTContinuationService
java.lang.Object
org.exoplatform.ws.frameworks.cometd.transport.RESTContinuationService
- All Implemented Interfaces:
org.exoplatform.services.rest.resource.ResourceContainer
public class RESTContinuationService
extends Object
implements org.exoplatform.services.rest.resource.ResourceContainer
Created by The eXo Platform SAS.
- Version:
- $Id: $
- Author:
- Vitaly Parfonov
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjavax.ws.rs.core.Responsejavax.ws.rs.core.ResponsehasChannel(String channel) javax.ws.rs.core.ResponseisSubscribed(String exoID, String channel) javax.ws.rs.core.Responsejavax.ws.rs.core.ResponsesendMessage(DelegateMessage data)
-
Constructor Details
-
RESTContinuationService
-
-
Method Details
-
getToken
- Parameters:
exoID- the id of client.- Returns:
- userToken for user
-
isSubscribed
- Parameters:
exoID- the id of client.channel- the id of channel- Returns:
- true if client subscribed on channel else false
-
hasChannel
- Parameters:
channel- the id of channel- Returns:
- true if channel exist else false
-
sendMessage
- Parameters:
data- content message, clientId, channel.- Returns:
- Response with status
-
sendBroadcastMessage
- Parameters:
data- content message, clientId, channel.- Returns:
- Response with status
-