public class NettyHttpRequest extends HttpRequest
RestRequest.Methodheaders| コンストラクタと説明 |
|---|
NettyHttpRequest(org.jboss.netty.handler.codec.http.HttpRequest request,
org.jboss.netty.channel.Channel channel) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
BytesReference |
content() |
org.jboss.netty.channel.Channel |
getChannel() |
SocketAddress |
getLocalAddress()
Returns the local address where this request channel is bound to.
|
SocketAddress |
getRemoteAddress()
Returns the remote address where this rest request channel is "connected to".
|
boolean |
hasContent() |
boolean |
hasParam(String key) |
String |
header(String name) |
Iterable<Map.Entry<String,String>> |
headers() |
RestRequest.Method |
method() |
String |
param(String key) |
String |
param(String key,
String defaultValue) |
Map<String,String> |
params() |
String |
rawPath()
The non decoded, raw path provided.
|
org.jboss.netty.handler.codec.http.HttpRequest |
request() |
String |
uri()
The uri of the rest request, with the query string.
|
paramAsBoolean, paramAsBoolean, paramAsFloat, paramAsInt, paramAsLong, paramAsSize, paramAsStringArray, paramAsStringArrayOrEmptyIfAll, paramAsTime, pathcontextSize, copyContextAndHeadersFrom, copyContextFrom, copyHeadersFrom, getContext, getFromContext, getFromContext, getHeader, getHeaders, hasHeader, hasInContext, isContextEmpty, putAllInContext, putHeader, putInContextpublic NettyHttpRequest(org.jboss.netty.handler.codec.http.HttpRequest request,
org.jboss.netty.channel.Channel channel)
public org.jboss.netty.handler.codec.http.HttpRequest request()
public RestRequest.Method method()
method クラス内 RestRequestpublic String uri()
RestRequesturi クラス内 RestRequestpublic String rawPath()
RestRequestrawPath クラス内 RestRequestpublic Map<String,String> params()
params クラス内 RestRequestpublic boolean hasContent()
hasContent クラス内 RestRequestpublic BytesReference content()
content クラス内 RestRequestpublic SocketAddress getRemoteAddress()
SocketAddress is supposed to be down-cast into more
concrete type such as InetSocketAddress to retrieve
the detailed information.getRemoteAddress クラス内 RestRequestpublic SocketAddress getLocalAddress()
SocketAddress is supposed to be down-cast into more concrete
type such as InetSocketAddress to retrieve the detailed
information.getLocalAddress クラス内 RestRequestpublic org.jboss.netty.channel.Channel getChannel()
public String header(String name)
header クラス内 RestRequestpublic boolean hasParam(String key)
hasParam クラス内 RestRequestpublic String param(String key)
param インタフェース内 ToXContent.Paramsparam クラス内 RestRequestCopyright © 2009–2016. All rights reserved.