
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 void checkHandlerSessionCorrectness(HttpRestHandler handler, RestArgument arguments, RestArgument result) throws HttpForbiddenRequestException
RestMethodHandlercheckHandlerSessionCorrectness in class RestMethodHandlerHttpForbiddenRequestExceptionpublic void getFileUpload(HttpRestHandler handler, io.netty.handler.codec.http.multipart.FileUpload data, RestArgument arguments, RestArgument result) throws HttpIncorrectRequestException
RestMethodHandlergetFileUpload in class RestMethodHandlerHttpIncorrectRequestExceptionpublic Object getBody(HttpRestHandler handler, io.netty.buffer.ByteBuf body, RestArgument arguments, RestArgument result) throws HttpIncorrectRequestException
RestMethodHandlergetBody in class RestMethodHandlerHttpIncorrectRequestExceptionpublic void endParsingRequest(HttpRestHandler handler, RestArgument arguments, RestArgument result, Object body) throws HttpIncorrectRequestException, HttpInvalidAuthenticationException
RestMethodHandlerendParsingRequest in class RestMethodHandlerHttpIncorrectRequestExceptionHttpInvalidAuthenticationExceptionpublic 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 void optionsCommand(HttpRestHandler handler, RestArgument arguments, RestArgument result)
RestMethodHandleroptionsCommand in class RestMethodHandlerprotected com.fasterxml.jackson.databind.node.ArrayNode getDetailedAllow()
getDetailedAllow in class RestMethodHandlerCopyright © 2009–2020 Waarp. All rights reserved.