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 Constructor Description RESTContinuationService(ContinuationService continuationService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.ResponsegetToken(String exoID)javax.ws.rs.core.ResponsehasChannel(String channel)javax.ws.rs.core.ResponseisSubscribed(String exoID, String channel)javax.ws.rs.core.ResponsesendBroadcastMessage(DelegateMessage data)javax.ws.rs.core.ResponsesendMessage(DelegateMessage data)
-
-
-
Constructor Detail
-
RESTContinuationService
public RESTContinuationService(ContinuationService continuationService)
-
-
Method Detail
-
getToken
public javax.ws.rs.core.Response getToken(String exoID)
- Parameters:
exoID- the id of client.- Returns:
- userToken for user
-
isSubscribed
public javax.ws.rs.core.Response isSubscribed(String exoID, String channel)
- Parameters:
exoID- the id of client.channel- the id of channel- Returns:
- true if client subscribed on channel else false
-
hasChannel
public javax.ws.rs.core.Response hasChannel(String channel)
- Parameters:
channel- the id of channel- Returns:
- true if channel exist else false
-
sendMessage
public javax.ws.rs.core.Response sendMessage(DelegateMessage data)
- Parameters:
data- content message, clientId, channel.- Returns:
- Response with status
-
sendBroadcastMessage
public javax.ws.rs.core.Response sendBroadcastMessage(DelegateMessage data)
- Parameters:
data- content message, clientId, channel.- Returns:
- Response with status
-
-