public abstract class DefaultJsonRpcHandler<P> extends Object implements JsonRpcHandler<P>
| Constructor and Description |
|---|
DefaultJsonRpcHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterConnectionClosed(Session session,
String status) |
void |
afterConnectionEstablished(Session session) |
List<String> |
allowedOrigins() |
Class<?> |
getHandlerType() |
String |
getLabel() |
void |
handleTransportError(Session session,
Throwable exception) |
void |
handleUncaughtException(Session session,
Exception exception) |
boolean |
isPingWatchdog() |
boolean |
isSockJSEnabled() |
DefaultJsonRpcHandler<P> |
withAllowedOrigins(String... origins) |
DefaultJsonRpcHandler<P> |
withLabel(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 Exception
afterConnectionEstablished in interface JsonRpcHandler<P>Exceptionpublic void afterConnectionClosed(Session session, String status) throws Exception
afterConnectionClosed in interface JsonRpcHandler<P>Exceptionpublic void handleTransportError(Session session, Throwable exception) throws Exception
handleTransportError in interface JsonRpcHandler<P>Exceptionpublic void handleUncaughtException(Session session, Exception exception)
handleUncaughtException in interface JsonRpcHandler<P>public 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(String... origins)
withAllowedOrigins in interface JsonRpcHandler<P>public List<String> allowedOrigins()
allowedOrigins in interface JsonRpcHandler<P>public DefaultJsonRpcHandler<P> withLabel(String label)
withLabel in interface JsonRpcHandler<P>public String getLabel()
getLabel in interface JsonRpcHandler<P>public DefaultJsonRpcHandler<P> withPingWatchdog(boolean pingAsWachdog)
public boolean isPingWatchdog()
isPingWatchdog in interface JsonRpcHandler<P>Copyright © 2017 Kurento. All rights reserved.