Package org.elasticsearch.test.rest
Class FakeRestRequest.Builder
java.lang.Object
org.elasticsearch.test.rest.FakeRestRequest.Builder
- Enclosing class:
- FakeRestRequest
-
Constructor Summary
ConstructorsConstructorDescriptionBuilder(org.elasticsearch.common.xcontent.NamedXContentRegistry xContentRegistry)
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
withContent(org.elasticsearch.common.bytes.BytesReference content, org.elasticsearch.common.xcontent.XContentType xContentType)
withHeaders(Map<String,List<String>> headers)
withInboundException(Exception exception)
withMethod(org.elasticsearch.rest.RestRequest.Method method)
withParams(Map<String,String> params)
withRemoteAddress(InetSocketAddress address)
-
Constructor Details
-
Builder
public Builder(org.elasticsearch.common.xcontent.NamedXContentRegistry xContentRegistry)
-
-
Method Details
-
withHeaders
-
withParams
-
withContent
public FakeRestRequest.Builder withContent(org.elasticsearch.common.bytes.BytesReference content, org.elasticsearch.common.xcontent.XContentType xContentType) -
withPath
-
withMethod
-
withRemoteAddress
-
withInboundException
-
build
-