public abstract class DefaultJsonRpcHandler<P> extends java.lang.Object implements JsonRpcHandler<P>
| Constructor and Description |
|---|
DefaultJsonRpcHandler() |
| 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 |
handleTransportError(Session session,
java.lang.Throwable exception) |
void |
handleUncaughtException(Session session,
java.lang.Exception exception) |
boolean |
isPingWatchdog() |
boolean |
isSockJSEnabled() |
DefaultJsonRpcHandler<P> |
withAllowedOrigins(java.lang.String... origins) |
DefaultJsonRpcHandler<P> |
withLabel(java.lang.String label) |
DefaultJsonRpcHandler<P> |
withPingWatchdog(boolean pingAsWachdog) |
DefaultJsonRpcHandler<P> |
withSockJS()
This method configures the handler to use sockJS
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithandleRequestpublic void afterConnectionEstablished(Session session) throws java.lang.Exception
afterConnectionEstablished in interface JsonRpcHandler<P>java.lang.Exceptionpublic void afterConnectionClosed(Session session, java.lang.String status) throws java.lang.Exception
afterConnectionClosed in interface JsonRpcHandler<P>java.lang.Exceptionpublic void handleTransportError(Session session, java.lang.Throwable exception) throws java.lang.Exception
handleTransportError in interface JsonRpcHandler<P>java.lang.Exceptionpublic void handleUncaughtException(Session session, java.lang.Exception exception)
handleUncaughtException in interface JsonRpcHandler<P>public java.lang.Class<?> getHandlerType()
getHandlerType in interface JsonRpcHandler<P>public DefaultJsonRpcHandler<P> withSockJS()
JsonRpcHandlerwithSockJS in interface JsonRpcHandler<P>public boolean isSockJSEnabled()
isSockJSEnabled in interface JsonRpcHandler<P>public final DefaultJsonRpcHandler<P> withAllowedOrigins(java.lang.String... origins)
withAllowedOrigins in interface JsonRpcHandler<P>public java.util.List<java.lang.String> allowedOrigins()
allowedOrigins in interface JsonRpcHandler<P>public DefaultJsonRpcHandler<P> withLabel(java.lang.String label)
withLabel in interface JsonRpcHandler<P>public java.lang.String getLabel()
getLabel in interface JsonRpcHandler<P>public DefaultJsonRpcHandler<P> withPingWatchdog(boolean pingAsWachdog)
public boolean isPingWatchdog()
isPingWatchdog in interface JsonRpcHandler<P>