public class RootOptionsRestMethodHandler extends RestMethodHandler
Modifier and Type | Field and Description |
---|---|
static String |
ROOT |
isBodyJsonDecode, methods, name, path, restConfiguration
Constructor and Description |
---|
RootOptionsRestMethodHandler(RestConfiguration config) |
Modifier and Type | Method and Description |
---|---|
void |
checkHandlerSessionCorrectness(HttpRestHandler handler,
RestArgument arguments,
RestArgument result)
Check the session (arguments, result) vs handler correctness, called
before
any BODY elements but after URI
and HEADER.
|
void |
endParsingRequest(HttpRestHandler handler,
RestArgument arguments,
RestArgument result,
Object body)
Called when all Data were passed to the handler
|
Object |
getBody(HttpRestHandler handler,
io.netty.buffer.ByteBuf body,
RestArgument arguments,
RestArgument result)
Get data from BODY (supposedly a Json)
|
protected com.fasterxml.jackson.databind.node.ArrayNode |
getDetailedAllow() |
void |
getFileUpload(HttpRestHandler handler,
io.netty.handler.codec.http.multipart.FileUpload data,
RestArgument arguments,
RestArgument result)
Get a new Http Uploaded File from BODY
|
void |
optionsCommand(HttpRestHandler handler,
RestArgument arguments,
RestArgument result)
Options command that all handler should implement
|
io.netty.channel.ChannelFuture |
sendResponse(HttpRestHandler handler,
io.netty.channel.ChannelHandlerContext ctx,
RestArgument arguments,
RestArgument result,
Object body,
io.netty.handler.codec.http.HttpResponseStatus status)
Send a response (correct or not)
|
getName, getPath, handleException, isBodyJsonDecoded, isMethodIncluded, sendOptionsResponse, setIntersectionMethods, setMethods
public static final String ROOT
public RootOptionsRestMethodHandler(RestConfiguration config)
public final void checkHandlerSessionCorrectness(HttpRestHandler handler, RestArgument arguments, RestArgument result)
RestMethodHandler
checkHandlerSessionCorrectness
in class RestMethodHandler
public final void getFileUpload(HttpRestHandler handler, io.netty.handler.codec.http.multipart.FileUpload data, RestArgument arguments, RestArgument result)
RestMethodHandler
getFileUpload
in class RestMethodHandler
public final Object getBody(HttpRestHandler handler, io.netty.buffer.ByteBuf body, RestArgument arguments, RestArgument result)
RestMethodHandler
getBody
in class RestMethodHandler
public final void endParsingRequest(HttpRestHandler handler, RestArgument arguments, RestArgument result, Object body)
RestMethodHandler
endParsingRequest
in class RestMethodHandler
public final io.netty.channel.ChannelFuture sendResponse(HttpRestHandler handler, io.netty.channel.ChannelHandlerContext ctx, RestArgument arguments, RestArgument result, Object body, io.netty.handler.codec.http.HttpResponseStatus status)
RestMethodHandler
sendResponse
in class RestMethodHandler
public final void optionsCommand(HttpRestHandler handler, RestArgument arguments, RestArgument result)
RestMethodHandler
optionsCommand
in class RestMethodHandler
protected final com.fasterxml.jackson.databind.node.ArrayNode getDetailedAllow()
getDetailedAllow
in class RestMethodHandler
Copyright © 2009–2022 Waarp. All rights reserved.