public interface ServiceFacade
| Modifier and Type | Method and Description |
|---|---|
void |
closeSubscription(java.lang.String id)
Permanently closes the push notification subscription with the given id
|
java.lang.String |
getResourceCacheKey()
Returns a string which can be used to control cache of resources regarding this Cyclos version / compilation
|
ResponseInfo |
handleInboundSms(RequestInfo request)
Handles an inbound SMS request, returning the response which should be returned to the gateway
|
InvocationResult |
invoke(InvocationData data)
Invokes a service method according to the given
InvocationData |
RequestData |
resolveRequestData(boolean proxy,
java.lang.String protocol,
java.lang.String remoteAddress,
java.lang.String rootUrl,
java.lang.String uri)
Returns the route data about a given request URI.
|
ResponseInfo |
runCustomWebService(InvocationData invocationData,
RequestInfo request)
Runs as guest the custom web service (if any) mapped to request's uri.
|
java.lang.String |
subscribe(InvocationData invocation,
java.lang.String clientId,
java.lang.String lastEventId,
PushNotificationEventFilter filter,
java.util.function.Consumer<PushNotificationEvent<?>> listener)
Subscribes a
PushNotificationListener returning the subscription id. |
void |
timeoutSubscription(java.lang.String id)
Marks the given push notification subscription as timed-out.
|
void closeSubscription(java.lang.String id)
java.lang.String getResourceCacheKey()
ResponseInfo handleInboundSms(RequestInfo request)
InvocationResult invoke(InvocationData data) throws FrameworkException, BusinessException, IllegalInvocationException
InvocationDataRequestData resolveRequestData(boolean proxy, java.lang.String protocol, java.lang.String remoteAddress, java.lang.String rootUrl, java.lang.String uri) throws FrameworkException
FrameworkExceptionResponseInfo runCustomWebService(InvocationData invocationData, RequestInfo request) throws FrameworkException, BusinessException
FrameworkExceptionBusinessExceptionjava.lang.String subscribe(InvocationData invocation, java.lang.String clientId, java.lang.String lastEventId, PushNotificationEventFilter filter, java.util.function.Consumer<PushNotificationEvent<?>> listener)
PushNotificationListener returning the subscription id.void timeoutSubscription(java.lang.String id)