Package org.elasticsearch.http
Interface HttpRequest
-
public interface HttpRequest
A basic http request abstraction. Http modules needs to implement this interface to integrate with the server package's rest handling.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
HttpRequest.HttpVersion
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description BytesReference
content()
HttpResponse
createResponse(RestStatus status, BytesReference content)
Create an http response from this request and the supplied status and content.java.util.Map<java.lang.String,java.util.List<java.lang.String>>
getHeaders()
Get all of the headers and values associated with the headers.RestRequest.Method
method()
HttpRequest.HttpVersion
protocolVersion()
HttpRequest
removeHeader(java.lang.String header)
java.util.List<java.lang.String>
strictCookies()
java.lang.String
uri()
The uri of the rest request, with the query string.
-
-
-
Method Detail
-
method
RestRequest.Method method()
-
uri
java.lang.String uri()
The uri of the rest request, with the query string.
-
content
BytesReference content()
-
getHeaders
java.util.Map<java.lang.String,java.util.List<java.lang.String>> getHeaders()
Get all of the headers and values associated with the headers. Modifications of this map are not supported.
-
strictCookies
java.util.List<java.lang.String> strictCookies()
-
protocolVersion
HttpRequest.HttpVersion protocolVersion()
-
removeHeader
HttpRequest removeHeader(java.lang.String header)
-
createResponse
HttpResponse createResponse(RestStatus status, BytesReference content)
Create an http response from this request and the supplied status and content.
-
-