public class FakeRestRequest
extends org.elasticsearch.rest.RestRequest
Modifier and Type | Class and Description |
---|---|
static class |
FakeRestRequest.Builder |
Constructor and Description |
---|
FakeRestRequest() |
Modifier and Type | Method and Description |
---|---|
org.elasticsearch.common.bytes.BytesReference |
content() |
boolean |
hasContent() |
java.lang.String |
header(java.lang.String name) |
java.lang.Iterable<java.util.Map.Entry<java.lang.String,java.lang.String>> |
headers() |
org.elasticsearch.rest.RestRequest.Method |
method() |
java.lang.String |
uri() |
public org.elasticsearch.rest.RestRequest.Method method()
method
in class org.elasticsearch.rest.RestRequest
public java.lang.String uri()
uri
in class org.elasticsearch.rest.RestRequest
public boolean hasContent()
hasContent
in class org.elasticsearch.rest.RestRequest
public org.elasticsearch.common.bytes.BytesReference content()
content
in class org.elasticsearch.rest.RestRequest
public java.lang.String header(java.lang.String name)
header
in class org.elasticsearch.rest.RestRequest
public java.lang.Iterable<java.util.Map.Entry<java.lang.String,java.lang.String>> headers()
headers
in class org.elasticsearch.rest.RestRequest