public class NettyHttpRequest extends HttpRequest
Constructor and Description |
---|
NettyHttpRequest(org.jboss.netty.handler.codec.http.HttpRequest request) |
Modifier and Type | Method and Description |
---|---|
org.elasticsearch.common.bytes.BytesReference |
content() |
boolean |
contentUnsafe() |
String |
getMethod() |
boolean |
hasContent() |
boolean |
hasParam(String key) |
String |
header(String name) |
Iterable<Map.Entry<String,String>> |
headers() |
org.elasticsearch.rest.RestRequest.Method |
method() |
String |
param(String key) |
String |
param(String key,
String defaultValue) |
Map<String,String> |
params() |
String |
rawPath() |
org.jboss.netty.handler.codec.http.HttpRequest |
request() |
String |
uri() |
public NettyHttpRequest(org.jboss.netty.handler.codec.http.HttpRequest request)
public org.jboss.netty.handler.codec.http.HttpRequest request()
public org.elasticsearch.rest.RestRequest.Method method()
method
in class org.elasticsearch.rest.RestRequest
public String getMethod()
getMethod
in class HttpRequest
public Map<String,String> params()
params
in class org.elasticsearch.rest.RestRequest
public boolean hasContent()
hasContent
in class org.elasticsearch.rest.RestRequest
public boolean contentUnsafe()
contentUnsafe
in class org.elasticsearch.rest.RestRequest
public org.elasticsearch.common.bytes.BytesReference content()
content
in class org.elasticsearch.rest.RestRequest
public String header(String name)
header
in class org.elasticsearch.rest.RestRequest
public Iterable<Map.Entry<String,String>> headers()
headers
in class org.elasticsearch.rest.RestRequest
public boolean hasParam(String key)
hasParam
in class org.elasticsearch.rest.RestRequest
public String param(String key)
param
in interface org.elasticsearch.common.xcontent.ToXContent.Params
param
in class org.elasticsearch.rest.RestRequest
Copyright © 2012–2014. All rights reserved.