public class NettyRequest extends Object implements NativeRequest
| Constructor and Description |
|---|
NettyRequest(io.netty.channel.ChannelHandlerContext ctx,
io.netty.handler.codec.http.HttpRequest req,
String tmpdir,
int wsMaxMessageSize) |
| Modifier and Type | Method and Description |
|---|---|
List<Cookie> |
cookies() |
List<NativeUpload> |
files(String name) |
Optional<String> |
header(String name) |
List<String> |
headerNames() |
List<String> |
headers(String name) |
InputStream |
in() |
String |
ip() |
String |
method() |
List<String> |
paramNames() |
List<String> |
params(String name) |
String |
path() |
String |
protocol() |
boolean |
secure() |
<T> T |
upgrade(Class<T> type) |
public NettyRequest(io.netty.channel.ChannelHandlerContext ctx,
io.netty.handler.codec.http.HttpRequest req,
String tmpdir,
int wsMaxMessageSize)
throws IOException
IOExceptionpublic String method()
method in interface NativeRequestpublic String path()
path in interface NativeRequestpublic List<String> paramNames() throws IOException
paramNames in interface NativeRequestIOExceptionpublic List<String> params(String name) throws Exception
params in interface NativeRequestExceptionpublic List<String> headers(String name)
headers in interface NativeRequestpublic Optional<String> header(String name)
header in interface NativeRequestpublic List<String> headerNames()
headerNames in interface NativeRequestpublic List<Cookie> cookies()
cookies in interface NativeRequestpublic List<NativeUpload> files(String name) throws IOException
files in interface NativeRequestIOExceptionpublic InputStream in() throws IOException
in in interface NativeRequestIOExceptionpublic String ip()
ip in interface NativeRequestpublic String protocol()
protocol in interface NativeRequestpublic boolean secure()
secure in interface NativeRequestpublic <T> T upgrade(Class<T> type) throws Exception
upgrade in interface NativeRequestExceptionCopyright © 2015. All rights reserved.