| Constructor and Description |
|---|
HttpRequest() |
| Modifier and Type | Method and Description |
|---|---|
Map<String,Object> |
attributes() |
io.netty.buffer.ByteBuf |
body() |
String |
bodyToString() |
static HttpRequest |
build(io.netty.channel.ChannelHandlerContext ctx,
io.netty.handler.codec.http.FullHttpRequest fullHttpRequest,
SessionHandler sessionHandler) |
Request |
cookie(Cookie cookie)
Add a cookie to the request
|
Optional<Cookie> |
cookieRaw(String name) |
Map<String,String> |
cookies() |
Map<String,FileItem> |
fileItems() |
Map<String,String> |
headers() |
String |
host() |
HttpMethod |
httpMethod() |
Request |
initPathParams(Route route)
init request path parameters
|
boolean |
isIE() |
boolean |
isSecure() |
boolean |
keepAlive() |
String |
method() |
Map<String,List<String>> |
parameters() |
Map<String,String> |
pathParams() |
String |
protocol() |
String |
queryString() |
Route |
route() |
Session |
session() |
String |
uri() |
String |
url() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddress, attribute, attribute, contentType, contextPath, cookie, cookie, fileItem, header, header, isAjax, pathInt, pathLong, pathString, query, query, queryDouble, queryDouble, queryInt, queryInt, queryLong, queryLong, userAgentpublic Request initPathParams(@NonNull Route route)
RequestinitPathParams in interface Requestpublic String host()
public String protocol()
public Map<String,String> pathParams()
pathParams in interface Requestpublic String queryString()
queryString in interface Requestpublic Map<String,List<String>> parameters()
parameters in interface Requestpublic String method()
public HttpMethod httpMethod()
httpMethod in interface Requestpublic Session session()
public boolean isSecure()
public boolean isIE()
public Request cookie(@NonNull Cookie cookie)
Requestpublic boolean keepAlive()
public Map<String,Object> attributes()
attributes in interface Requestpublic io.netty.buffer.ByteBuf body()
public String bodyToString()
bodyToString in interface Requestpublic static HttpRequest build(io.netty.channel.ChannelHandlerContext ctx, io.netty.handler.codec.http.FullHttpRequest fullHttpRequest, SessionHandler sessionHandler)
Copyright © 2017. All rights reserved.