public class HttpRestR66Handler extends HttpRestHandler
Modifier and Type | Class and Description |
---|---|
static class |
HttpRestR66Handler.RESTHANDLERS |
HttpRestHandler.HttpCleanChannelFutureListener, HttpRestHandler.METHOD
arguments, cumulativeBody, dbSession, decoder, defaultConfiguration, factory, group, handler, jsonObject, request, response, restConfiguration, restHashMap, rootHandler, status, TempPath
Constructor and Description |
---|
HttpRestR66Handler(RestConfiguration config) |
Modifier and Type | Method and Description |
---|---|
void |
channelInactive(io.netty.channel.ChannelHandlerContext ctx) |
protected void |
checkConnection(io.netty.channel.ChannelHandlerContext ctx)
To be used for instance to check correctness of connection
Note that ARG_METHOD is only set from current request. |
static void |
defaultHandlers()
To be called once to ensure default is built
|
static HashMap<String,DbSession> |
getDbSessionFromUser() |
protected static HttpRestHandler.METHOD[] |
getMethods(byte check) |
ServerActions |
getServerHandler() |
protected void |
initialize()
Called at the beginning of every new request
Override if needed
|
static void |
initializeService(RestConfiguration restConfiguration)
Initialize the REST service (server side) for one restConfiguration
|
static void |
instantiateHandlers(RestConfiguration restConfiguration) |
bodyChunk, channelActive, channelRead0, clean, createDecoder, exceptionCaught, finalizeSend, forceClosing, getBodyJsonArgs, getDbSession, getHandler, getRequest, getResponse, getStatus, initialize, isWillClose, readAllHttpData, readHttpData, readHttpDataChunkByChunk, setCookies, setStatus, setWillClose
acceptInboundMessage, channelRead
channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, userEventTriggered
ensureNotSharable, handlerAdded, handlerRemoved, isSharable
public HttpRestR66Handler(RestConfiguration config)
public static void defaultHandlers()
protected static HttpRestHandler.METHOD[] getMethods(byte check)
public static void instantiateHandlers(RestConfiguration restConfiguration)
protected void checkConnection(io.netty.channel.ChannelHandlerContext ctx) throws HttpInvalidAuthenticationException
HttpRestHandler
checkConnection
in class HttpRestHandler
HttpInvalidAuthenticationException
public void channelInactive(io.netty.channel.ChannelHandlerContext ctx) throws Exception
channelInactive
in interface io.netty.channel.ChannelInboundHandler
channelInactive
in class HttpRestHandler
Exception
protected void initialize()
Override if needed
initialize
in class HttpRestHandler
public static void initializeService(RestConfiguration restConfiguration)
restConfiguration
- public static HashMap<String,DbSession> getDbSessionFromUser()
public ServerActions getServerHandler()
Copyright © 2009–2020 Waarp. All rights reserved.