public class PerSessionJsonRpcHandler<T> extends Object implements JsonRpcHandler<T>, org.springframework.beans.factory.BeanFactoryAware
| Constructor and Description |
|---|
PerSessionJsonRpcHandler(Class<? extends JsonRpcHandler<T>> handlerType) |
PerSessionJsonRpcHandler(String handlerName) |
PerSessionJsonRpcHandler(String handlerName,
Class<? extends JsonRpcHandler<T>> handlerType) |
| Modifier and Type | Method and Description |
|---|---|
void |
afterConnectionClosed(Session session,
String status) |
void |
afterConnectionEstablished(Session session) |
void |
afterReconnection(Session session) |
List<String> |
allowedOrigins() |
Class<? extends JsonRpcHandler<T>> |
getHandlerType() |
String |
getLabel() |
void |
handleRequest(Transaction transaction,
Request<T> request) |
void |
handleTransportError(Session session,
Throwable exception) |
void |
handleUncaughtException(Session session,
Exception exception) |
List<Object> |
interceptors() |
boolean |
isPingWatchdog() |
boolean |
isSockJSEnabled() |
void |
setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) |
PerSessionJsonRpcHandler<T> |
withAllowedOrigins(String... origins) |
JsonRpcHandler<T> |
withInterceptors(Object... interceptors) |
PerSessionJsonRpcHandler<T> |
withLabel(String label) |
PerSessionJsonRpcHandler<T> |
withPingWachdog(boolean pingAsWachdog) |
PerSessionJsonRpcHandler<T> |
withSockJS() |
public PerSessionJsonRpcHandler(String handlerName)
public PerSessionJsonRpcHandler(Class<? extends JsonRpcHandler<T>> handlerType)
public PerSessionJsonRpcHandler(String handlerName, Class<? extends JsonRpcHandler<T>> handlerType)
public Class<? extends JsonRpcHandler<T>> getHandlerType()
getHandlerType in interface JsonRpcHandler<T>public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
throws org.springframework.beans.BeansException
setBeanFactory in interface org.springframework.beans.factory.BeanFactoryAwareorg.springframework.beans.BeansExceptionpublic void handleRequest(Transaction transaction, Request<T> request) throws Exception
handleRequest in interface JsonRpcHandler<T>Exceptionpublic void afterConnectionEstablished(Session session) throws Exception
afterConnectionEstablished in interface JsonRpcHandler<T>Exceptionpublic void afterConnectionClosed(Session session, String status) throws Exception
afterConnectionClosed in interface JsonRpcHandler<T>Exceptionpublic void afterReconnection(Session session) throws Exception
afterReconnection in interface JsonRpcHandler<T>Exceptionpublic void handleTransportError(Session session, Throwable exception) throws Exception
handleTransportError in interface JsonRpcHandler<T>Exceptionpublic void handleUncaughtException(Session session, Exception exception)
handleUncaughtException in interface JsonRpcHandler<T>public PerSessionJsonRpcHandler<T> withSockJS()
withSockJS in interface JsonRpcHandler<T>public boolean isSockJSEnabled()
isSockJSEnabled in interface JsonRpcHandler<T>public PerSessionJsonRpcHandler<T> withLabel(String label)
withLabel in interface JsonRpcHandler<T>public String getLabel()
getLabel in interface JsonRpcHandler<T>public PerSessionJsonRpcHandler<T> withPingWachdog(boolean pingAsWachdog)
public boolean isPingWatchdog()
isPingWatchdog in interface JsonRpcHandler<T>public final PerSessionJsonRpcHandler<T> withAllowedOrigins(String... origins)
withAllowedOrigins in interface JsonRpcHandler<T>public List<String> allowedOrigins()
allowedOrigins in interface JsonRpcHandler<T>public JsonRpcHandler<T> withInterceptors(Object... interceptors)
withInterceptors in interface JsonRpcHandler<T>public List<Object> interceptors()
interceptors in interface JsonRpcHandler<T>Copyright © 2021 Kurento. All rights reserved.