Package org.jclouds.http
Class HttpRequest
- java.lang.Object
-
- org.jclouds.http.internal.PayloadEnclosingImpl
-
- org.jclouds.http.HttpMessage
-
- org.jclouds.http.HttpRequest
-
- All Implemented Interfaces:
PayloadEnclosing
- Direct Known Subclasses:
GeneratedHttpRequest
public class HttpRequest extends HttpMessage
Represents a request that can be executed withinHttpCommandExecutorService
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
HttpRequest.Builder<T extends HttpRequest.Builder<T>>
-
Field Summary
Fields Modifier and Type Field Description static Set<String>
NON_PAYLOAD_METHODS
-
Fields inherited from class org.jclouds.http.HttpMessage
headers
-
Fields inherited from class org.jclouds.http.internal.PayloadEnclosingImpl
payload
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
HttpRequest(String method, URI endpoint, com.google.common.collect.Multimap<String,String> headers, Payload payload, Iterable<HttpRequestFilter> filters)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description 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()
int
hashCode()
protected com.google.common.base.MoreObjects.ToStringHelper
string()
HttpRequest.Builder<?>
toBuilder()
-
Methods inherited from class org.jclouds.http.HttpMessage
getFirstHeaderOrNull, getHeaders, toString
-
Methods inherited from class org.jclouds.http.internal.PayloadEnclosingImpl
getPayload, resetPayload, setPayload, setPayload, setPayload, setPayload, setPayload, setPayload
-
-
-
-
Method Detail
-
builder
public static HttpRequest.Builder<?> builder()
-
toBuilder
public HttpRequest.Builder<?> toBuilder()
- Overrides:
toBuilder
in classHttpMessage
-
getRequestLine
public String getRequestLine()
-
getMethod
public String getMethod()
We cannot return an enum, as per specification custom methods are allowed. Enums are not extensible.- See Also:
- rfc2616
-
getEndpoint
public URI getEndpoint()
-
getFilters
public List<HttpRequestFilter> getFilters()
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classHttpMessage
-
equals
public boolean equals(Object obj)
- Overrides:
equals
in classHttpMessage
-
string
protected com.google.common.base.MoreObjects.ToStringHelper string()
- Overrides:
string
in classHttpMessage
-
-