public interface JsonRpcHandler<P>
Modifier and Type | Method and Description |
---|---|
void |
afterConnectionClosed(Session session,
String status) |
void |
afterConnectionEstablished(Session session) |
List<String> |
allowedOrigins() |
Class<?> |
getHandlerType() |
String |
getLabel() |
void |
handleRequest(Transaction transaction,
Request<P> request)
Invoked when a new JsonRpc request arrives.
|
void |
handleTransportError(Session session,
Throwable exception) |
void |
handleUncaughtException(Session session,
Exception exception) |
boolean |
isPingWatchdog() |
boolean |
isSockJSEnabled() |
JsonRpcHandler<P> |
withAllowedOrigins(String... string) |
JsonRpcHandler<P> |
withLabel(String label) |
JsonRpcHandler<P> |
withSockJS()
This method configures the handler to use sockJS
|
void handleRequest(Transaction transaction, Request<P> request) throws Exception
transaction
- the transaction to which the request belongsrequest
- the requestTransportException
- when there is an error in the transport mechanismException
- this method can handle or propagate exceptions.void afterConnectionEstablished(Session session) throws Exception
Exception
void afterConnectionClosed(Session session, String status) throws Exception
Exception
void handleTransportError(Session session, Throwable exception) throws Exception
Exception
Class<?> getHandlerType()
JsonRpcHandler<P> withSockJS()
JsonRpcHandler<P> withAllowedOrigins(String... string)
boolean isSockJSEnabled()
JsonRpcHandler<P> withLabel(String label)
String getLabel()
boolean isPingWatchdog()
Copyright © 2017 Kurento. All rights reserved.