public abstract class WebSocketConnectionHandler extends RequestHandlerBase
Destroyable.Util| Modifier and Type | Field and Description |
|---|---|
protected java.lang.ClassLoader |
cl |
protected WebSocketConnectionManager |
connectionManager |
protected ControllerClassMetaInfo |
controller |
protected boolean |
disabled |
protected ActionMethodMetaInfo |
handler |
protected java.lang.Class<?> |
handlerClass |
protected boolean |
isStatic |
protected java.lang.reflect.Method |
method |
protected com.esotericsoftware.reflectasm.MethodAccess |
methodAccess |
logger| Modifier | Constructor and Description |
|---|---|
|
WebSocketConnectionHandler(ActionMethodMetaInfo methodInfo,
WebSocketConnectionManager manager) |
protected |
WebSocketConnectionHandler(WebSocketConnectionManager manager) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
invoke(WebSocketContext context) |
boolean |
isWsHandler()
This method is used by
RequestHandlerProxy to check if a handler is WS handler or GET handler |
void |
prepareAuthentication(ActionContext context)
Setting up handler for authentication.
|
apply, corsSpec, csrfSpec, destroy, express, isDestroyed, noContextResoving, realHandler, releaseResources, requireResolveContext, scope, sessionFree, setExpress, setSessionFree, supportPartialPath, wrapandThen, andThen, applyOrElse, compose, compose, compose, compose, compose, compose, curry, invert, lift, orElse, timesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithandleprotected boolean disabled
protected java.lang.ClassLoader cl
protected WebSocketConnectionManager connectionManager
protected ActionMethodMetaInfo handler
protected ControllerClassMetaInfo controller
protected java.lang.Class<?> handlerClass
protected java.lang.reflect.Method method
protected com.esotericsoftware.reflectasm.MethodAccess methodAccess
protected boolean isStatic
protected WebSocketConnectionHandler(WebSocketConnectionManager manager)
public WebSocketConnectionHandler(ActionMethodMetaInfo methodInfo, WebSocketConnectionManager manager)
public boolean isWsHandler()
This method is used by RequestHandlerProxy to check if a handler is WS handler or GET handler
true if this is a real WS handlerpublic void prepareAuthentication(ActionContext context)
RequestHandlerSetting up handler for authentication. For example, initialize the missing authentication handler, csrf failure handler.
context - the current action contextprotected void invoke(WebSocketContext context)
Copyright © 2014–2017 ActFramework. All rights reserved.