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