public class MethodWebHandlerAdapter extends MethodWebHandler
path| Modifier | Constructor and Description |
|---|---|
protected |
MethodWebHandlerAdapter(String path)
Constructs a new method web handler adapter for a given path.
|
| Modifier and Type | Method and Description |
|---|---|
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. |
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. |
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 |
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. |
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. |
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. |
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. |
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. |
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. |
handleRequestclone, getPath, newResponse, newResponseprotected MethodWebHandlerAdapter(String path)
path - the path where this handler is available.public 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
MethodWebHandlerCONNECT request to the configured path.connect in class MethodWebHandlerchannelHandlerContext - 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 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
MethodWebHandlerDELETE request to the configured path.delete in class MethodWebHandlerchannelHandlerContext - 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 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
MethodWebHandlerGET request to the configured path.get in class MethodWebHandlerchannelHandlerContext - 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 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
MethodWebHandlerPUT request to the configured path.put in class MethodWebHandlerchannelHandlerContext - 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 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
MethodWebHandlerHEAD request to the configured path.head in class MethodWebHandlerchannelHandlerContext - 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 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
MethodWebHandlerOPTIONS request to the configured path.options in class MethodWebHandlerchannelHandlerContext - 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 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
MethodWebHandlerPATCH request to the configured path.patch in class MethodWebHandlerchannelHandlerContext - 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 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
MethodWebHandlerTRACE request to the configured path.trace in class MethodWebHandlerchannelHandlerContext - 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 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
MethodWebHandlerPOST request to the configured path.post in class MethodWebHandlerchannelHandlerContext - 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.