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