public abstract class MethodWebHandler extends WebHandler
path| Modifier | Constructor and Description |
|---|---|
protected |
MethodWebHandler(String path)
Constructs a new method web handler for a given path.
|
| Modifier and Type | Method and Description |
|---|---|
abstract io.netty.handler.codec.http.FullHttpResponse |
connect(io.netty.channel.ChannelHandlerContext channelHandlerContext,
QueryDecoder queryDecoder,
PathProvider pathProvider,
io.netty.handler.codec.http.HttpRequest httpRequest)
Handle a
CONNECT request to the configured path. |
abstract io.netty.handler.codec.http.FullHttpResponse |
delete(io.netty.channel.ChannelHandlerContext channelHandlerContext,
QueryDecoder queryDecoder,
PathProvider pathProvider,
io.netty.handler.codec.http.HttpRequest httpRequest)
Handle a
DELETE request to the configured path. |
abstract io.netty.handler.codec.http.FullHttpResponse |
get(io.netty.channel.ChannelHandlerContext channelHandlerContext,
QueryDecoder queryDecoder,
PathProvider pathProvider,
io.netty.handler.codec.http.HttpRequest httpRequest)
Handle a
GET request to the configured path. |
io.netty.handler.codec.http.FullHttpResponse |
handleRequest(io.netty.channel.ChannelHandlerContext channelHandlerContext,
QueryDecoder queryDecoder,
PathProvider path,
io.netty.handler.codec.http.HttpRequest httpRequest)
Handle a request to the configured
path. |
abstract io.netty.handler.codec.http.FullHttpResponse |
head(io.netty.channel.ChannelHandlerContext channelHandlerContext,
QueryDecoder queryDecoder,
PathProvider pathProvider,
io.netty.handler.codec.http.HttpRequest httpRequest)
Handle a
HEAD request to the configured path. |
abstract io.netty.handler.codec.http.FullHttpResponse |
options(io.netty.channel.ChannelHandlerContext channelHandlerContext,
QueryDecoder queryDecoder,
PathProvider pathProvider,
io.netty.handler.codec.http.HttpRequest httpRequest)
Handle a
OPTIONS request to the configured path. |
abstract io.netty.handler.codec.http.FullHttpResponse |
patch(io.netty.channel.ChannelHandlerContext channelHandlerContext,
QueryDecoder queryDecoder,
PathProvider pathProvider,
io.netty.handler.codec.http.HttpRequest httpRequest)
Handle a
PATCH request to the configured path. |
abstract io.netty.handler.codec.http.FullHttpResponse |
post(io.netty.channel.ChannelHandlerContext channelHandlerContext,
QueryDecoder queryDecoder,
PathProvider pathProvider,
io.netty.handler.codec.http.HttpRequest httpRequest)
Handle a
POST request to the configured path. |
abstract io.netty.handler.codec.http.FullHttpResponse |
put(io.netty.channel.ChannelHandlerContext channelHandlerContext,
QueryDecoder queryDecoder,
PathProvider pathProvider,
io.netty.handler.codec.http.HttpRequest httpRequest)
Handle a
PUT request to the configured path. |
abstract io.netty.handler.codec.http.FullHttpResponse |
trace(io.netty.channel.ChannelHandlerContext channelHandlerContext,
QueryDecoder queryDecoder,
PathProvider pathProvider,
io.netty.handler.codec.http.HttpRequest httpRequest)
Handle a
TRACE request to the configured path. |
clone, getPath, newResponse, newResponseprotected MethodWebHandler(String path)
path - the path where this handler is available.public final io.netty.handler.codec.http.FullHttpResponse handleRequest(io.netty.channel.ChannelHandlerContext channelHandlerContext,
QueryDecoder queryDecoder,
PathProvider path,
io.netty.handler.codec.http.HttpRequest httpRequest)
throws Exception
WebHandlerpath.handleRequest in class WebHandlerchannelHandlerContext - the Netty context this request originates fromqueryDecoder - a decoder for possible query parameterspath - a path provider with the provided parametershttpRequest - the HTTP request that was received and should be handledException - when any error occurred during the handling of the requestpublic abstract io.netty.handler.codec.http.FullHttpResponse connect(io.netty.channel.ChannelHandlerContext channelHandlerContext,
QueryDecoder queryDecoder,
PathProvider pathProvider,
io.netty.handler.codec.http.HttpRequest httpRequest)
throws Exception
CONNECT request to the configured path.channelHandlerContext - the Netty context this request originates fromqueryDecoder - a decoder for possible query parameterspathProvider - a path provider with the provided parametershttpRequest - the HTTP request that was received and should be handledException - when any error occurred during the handling of the requestpublic abstract io.netty.handler.codec.http.FullHttpResponse delete(io.netty.channel.ChannelHandlerContext channelHandlerContext,
QueryDecoder queryDecoder,
PathProvider pathProvider,
io.netty.handler.codec.http.HttpRequest httpRequest)
throws Exception
DELETE request to the configured path.channelHandlerContext - the Netty context this request originates fromqueryDecoder - a decoder for possible query parameterspathProvider - a path provider with the provided parametershttpRequest - the HTTP request that was received and should be handledException - when any error occurred during the handling of the requestpublic abstract io.netty.handler.codec.http.FullHttpResponse get(io.netty.channel.ChannelHandlerContext channelHandlerContext,
QueryDecoder queryDecoder,
PathProvider pathProvider,
io.netty.handler.codec.http.HttpRequest httpRequest)
throws Exception
GET request to the configured path.channelHandlerContext - the Netty context this request originates fromqueryDecoder - a decoder for possible query parameterspathProvider - a path provider with the provided parametershttpRequest - the HTTP request that was received and should be handledException - when any error occurred during the handling of the requestpublic abstract io.netty.handler.codec.http.FullHttpResponse put(io.netty.channel.ChannelHandlerContext channelHandlerContext,
QueryDecoder queryDecoder,
PathProvider pathProvider,
io.netty.handler.codec.http.HttpRequest httpRequest)
throws Exception
PUT request to the configured path.channelHandlerContext - the Netty context this request originates fromqueryDecoder - a decoder for possible query parameterspathProvider - a path provider with the provided parametershttpRequest - the HTTP request that was received and should be handledException - when any error occurred during the handling of the requestpublic abstract io.netty.handler.codec.http.FullHttpResponse head(io.netty.channel.ChannelHandlerContext channelHandlerContext,
QueryDecoder queryDecoder,
PathProvider pathProvider,
io.netty.handler.codec.http.HttpRequest httpRequest)
throws Exception
HEAD request to the configured path.channelHandlerContext - the Netty context this request originates fromqueryDecoder - a decoder for possible query parameterspathProvider - a path provider with the provided parametershttpRequest - the HTTP request that was received and should be handledException - when any error occurred during the handling of the requestpublic abstract io.netty.handler.codec.http.FullHttpResponse options(io.netty.channel.ChannelHandlerContext channelHandlerContext,
QueryDecoder queryDecoder,
PathProvider pathProvider,
io.netty.handler.codec.http.HttpRequest httpRequest)
throws Exception
OPTIONS request to the configured path.channelHandlerContext - the Netty context this request originates fromqueryDecoder - a decoder for possible query parameterspathProvider - a path provider with the provided parametershttpRequest - the HTTP request that was received and should be handledException - when any error occurred during the handling of the requestpublic abstract io.netty.handler.codec.http.FullHttpResponse patch(io.netty.channel.ChannelHandlerContext channelHandlerContext,
QueryDecoder queryDecoder,
PathProvider pathProvider,
io.netty.handler.codec.http.HttpRequest httpRequest)
throws Exception
PATCH request to the configured path.channelHandlerContext - the Netty context this request originates fromqueryDecoder - a decoder for possible query parameterspathProvider - a path provider with the provided parametershttpRequest - the HTTP request that was received and should be handledException - when any error occurred during the handling of the requestpublic abstract io.netty.handler.codec.http.FullHttpResponse trace(io.netty.channel.ChannelHandlerContext channelHandlerContext,
QueryDecoder queryDecoder,
PathProvider pathProvider,
io.netty.handler.codec.http.HttpRequest httpRequest)
throws Exception
TRACE request to the configured path.channelHandlerContext - the Netty context this request originates fromqueryDecoder - a decoder for possible query parameterspathProvider - a path provider with the provided parametershttpRequest - the HTTP request that was received and should be handledException - when any error occurred during the handling of the requestpublic abstract io.netty.handler.codec.http.FullHttpResponse post(io.netty.channel.ChannelHandlerContext channelHandlerContext,
QueryDecoder queryDecoder,
PathProvider pathProvider,
io.netty.handler.codec.http.HttpRequest httpRequest)
throws Exception
POST request to the configured path.channelHandlerContext - the Netty context this request originates fromqueryDecoder - a decoder for possible query parameterspathProvider - a path provider with the provided parametershttpRequest - the HTTP request that was received and should be handledException - when any error occurred during the handling of the requestCopyright © 2020. All rights reserved.