Package org.elasticsearch.test.rest
Class FakeRestRequest.FakeHttpRequest
java.lang.Object
org.elasticsearch.test.rest.FakeRestRequest.FakeHttpRequest
- All Implemented Interfaces:
HttpRequest
- Enclosing class:
- FakeRestRequest
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.http.HttpRequest
HttpRequest.HttpVersion -
Constructor Summary
ConstructorsConstructorDescriptionFakeHttpRequest(RestRequest.Method method, String uri, BytesReference content, Map<String, List<String>> headers) -
Method Summary
Modifier and TypeMethodDescriptioncontent()createResponse(RestStatus status, BytesReference unused) method()voidrelease()removeHeader(String header) uri()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.http.HttpRequest
allHeaders, header
-
Constructor Details
-
FakeHttpRequest
public FakeHttpRequest(RestRequest.Method method, String uri, BytesReference content, Map<String, List<String>> headers)
-
-
Method Details
-
method
- Specified by:
methodin interfaceHttpRequest
-
uri
- Specified by:
uriin interfaceHttpRequest
-
content
- Specified by:
contentin interfaceHttpRequest
-
getHeaders
- Specified by:
getHeadersin interfaceHttpRequest
-
strictCookies
- Specified by:
strictCookiesin interfaceHttpRequest
-
protocolVersion
- Specified by:
protocolVersionin interfaceHttpRequest
-
removeHeader
- Specified by:
removeHeaderin interfaceHttpRequest
-
createResponse
- Specified by:
createResponsein interfaceHttpRequest
-
release
public void release()- Specified by:
releasein interfaceHttpRequest
-
releaseAndCopy
- Specified by:
releaseAndCopyin interfaceHttpRequest
-
getInboundException
- Specified by:
getInboundExceptionin interfaceHttpRequest
-