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, wait
address, attribute, attribute, contentType, contextPath, cookie, cookie, fileItem, header, header, isAjax, pathInt, pathLong, pathString, query, query, queryDouble, queryDouble, queryInt, queryInt, queryLong, queryLong, userAgent
public Request initPathParams(Route route)
Request
initPathParams
in interface Request
public String host()
public String protocol()
public Map<String,String> pathParams()
pathParams
in interface Request
public String queryString()
queryString
in interface Request
public Map<String,List<String>> parameters()
parameters
in interface Request
public String method()
public HttpMethod httpMethod()
httpMethod
in interface Request
public Session session()
public boolean isSecure()
public boolean isIE()
public Request cookie(Cookie cookie)
Request
public boolean keepAlive()
public Map<String,Object> attributes()
attributes
in interface Request
public io.netty.buffer.ByteBuf body()
public String bodyToString()
bodyToString
in interface Request
public static HttpRequest build(io.netty.channel.ChannelHandlerContext ctx, io.netty.handler.codec.http.FullHttpRequest fullHttpRequest, SessionHandler sessionHandler)
Copyright © 2017. All rights reserved.