
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, setMethodspublic static final String ROOT
public RootOptionsRestMethodHandler(RestConfiguration config)
public final void checkHandlerSessionCorrectness(HttpRestHandler handler, RestArgument arguments, RestArgument result)
RestMethodHandlercheckHandlerSessionCorrectness in class RestMethodHandlerpublic final void getFileUpload(HttpRestHandler handler, io.netty.handler.codec.http.multipart.FileUpload data, RestArgument arguments, RestArgument result)
RestMethodHandlergetFileUpload in class RestMethodHandlerpublic final Object getBody(HttpRestHandler handler, io.netty.buffer.ByteBuf body, RestArgument arguments, RestArgument result)
RestMethodHandlergetBody in class RestMethodHandlerpublic final void endParsingRequest(HttpRestHandler handler, RestArgument arguments, RestArgument result, Object body)
RestMethodHandlerendParsingRequest in class RestMethodHandlerpublic 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)
RestMethodHandlersendResponse in class RestMethodHandlerpublic final void optionsCommand(HttpRestHandler handler, RestArgument arguments, RestArgument result)
RestMethodHandleroptionsCommand in class RestMethodHandlerprotected final com.fasterxml.jackson.databind.node.ArrayNode getDetailedAllow()
getDetailedAllow in class RestMethodHandlerCopyright © 2009–2022 Waarp. All rights reserved.