public class HttpRequest extends HttpMessage
HttpCommandExecutorService
Modifier and Type | Class and Description |
---|---|
static class |
HttpRequest.Builder |
headers
payload
Modifier | Constructor and Description |
---|---|
|
HttpRequest(String method,
URI endpoint) |
|
HttpRequest(String method,
URI endpoint,
char[] skips) |
|
HttpRequest(String method,
URI endpoint,
char[] skips,
List<HttpRequestFilter> requestFilters) |
|
HttpRequest(String method,
URI endpoint,
char[] skips,
List<HttpRequestFilter> requestFilters,
Payload payload) |
|
HttpRequest(String method,
URI endpoint,
char[] skips,
List<HttpRequestFilter> requestFilters,
Payload payload,
com.google.common.collect.Multimap<String,String> headers) |
|
HttpRequest(String method,
URI endpoint,
com.google.common.collect.Multimap<String,String> headers) |
protected |
HttpRequest(String method,
URI endpoint,
com.google.common.collect.Multimap<String,String> headers,
Payload payload) |
Modifier and Type | Method and Description |
---|---|
void |
addFilter(HttpRequestFilter filter) |
static HttpRequest.Builder |
builder() |
boolean |
equals(Object obj) |
URI |
getEndpoint() |
List<HttpRequestFilter> |
getFilters() |
String |
getMethod()
We cannot return an enum, as per specification custom methods are allowed.
|
String |
getRequestLine() |
char[] |
getSkips()
characters to skip encoding on.
|
int |
hashCode() |
HttpRequest.Builder |
toBuilder() |
String |
toString() |
getFirstHeaderOrNull, getHeaders
getPayload, setPayload, setPayload, setPayload, setPayload, setPayload
public HttpRequest(String method, URI endpoint)
endpoint
- This may change over the life of the request due to redirects.method
- If the request is HEAD, this may change to GET due to redirectspublic HttpRequest(String method, URI endpoint, char[] skips, List<HttpRequestFilter> requestFilters)
public HttpRequest(String method, URI endpoint, char[] skips, List<HttpRequestFilter> requestFilters, @Nullable Payload payload)
public HttpRequest(String method, URI endpoint, com.google.common.collect.Multimap<String,String> headers)
endpoint
- This may change over the life of the request due to redirects.method
- If the request is HEAD, this may change to GET due to redirectspublic HttpRequest(String method, URI endpoint, char[] skips, List<HttpRequestFilter> requestFilters, @Nullable Payload payload, com.google.common.collect.Multimap<String,String> headers)
protected HttpRequest(String method, URI endpoint, com.google.common.collect.Multimap<String,String> headers, @Nullable Payload payload)
endpoint
- This may change over the life of the request due to redirects.method
- If the request is HEAD, this may change to GET due to redirectspublic static HttpRequest.Builder builder()
public String getRequestLine()
public String getMethod()
public char[] getSkips()
public URI getEndpoint()
public void addFilter(HttpRequestFilter filter)
public List<HttpRequestFilter> getFilters()
public HttpRequest.Builder toBuilder()
toBuilder
in class HttpMessage
public int hashCode()
hashCode
in class HttpMessage
public boolean equals(Object obj)
equals
in class HttpMessage
public String toString()
toString
in class HttpMessage
Copyright © 2009-2012 jclouds. All Rights Reserved.