org.jclouds.http.options
Class BaseHttpRequestOptions
java.lang.Object
org.jclouds.http.options.BaseHttpRequestOptions
- All Implemented Interfaces:
- HttpRequestOptions
- Direct Known Subclasses:
- AddLoadBalancerOptions, AddServerOptions, BaseEC2RequestOptions, BaseListOptions, CopyObjectOptions, CreateInstanceOptions, CreateOptions, GetImageListOptions, GetIpListOptions, GetJobListOptions, GetOptions, GetServerListOptions, ListBucketOptions, ListCdnContainerOptions, ListContainerOptions, ListOptions, ListOptions, ListOptions, PutBucketOptions, PutObjectOptions, PutOptions
public class BaseHttpRequestOptions
- extends Object
- implements HttpRequestOptions
- Author:
- Adrian Cole
- See Also:
HttpRequestOptions
matrixParameters
protected final com.google.common.collect.Multimap<String,String> matrixParameters
formParameters
protected final com.google.common.collect.Multimap<String,String> formParameters
queryParameters
protected final com.google.common.collect.Multimap<String,String> queryParameters
headers
protected final com.google.common.collect.Multimap<String,String> headers
payload
protected String payload
pathSuffix
protected String pathSuffix
BaseHttpRequestOptions
public BaseHttpRequestOptions()
buildStringPayload
public String buildStringPayload()
- Specified by:
buildStringPayload
in interface HttpRequestOptions
getFirstMatrixOrNull
protected String getFirstMatrixOrNull(String string)
getFirstQueryOrNull
protected String getFirstQueryOrNull(String string)
getFirstFormOrNull
protected String getFirstFormOrNull(String string)
getFirstHeaderOrNull
protected String getFirstHeaderOrNull(String string)
replaceHeader
protected void replaceHeader(String key,
String value)
buildRequestHeaders
public com.google.common.collect.Multimap<String,String> buildRequestHeaders()
- Builds headers representing options.
- Specified by:
buildRequestHeaders
in interface HttpRequestOptions
- Returns:
- multimap that may contain headers.
buildQueryParameters
public com.google.common.collect.Multimap<String,String> buildQueryParameters()
- Builds query parameters representing options.
- Specified by:
buildQueryParameters
in interface HttpRequestOptions
- Returns:
- map that may contain query parameters.
buildMatrixParameters
public com.google.common.collect.Multimap<String,String> buildMatrixParameters()
- Builds matrix parameters representing options.
- Specified by:
buildMatrixParameters
in interface HttpRequestOptions
- Returns:
- multimap that may contain matrix parameters.
buildPathSuffix
public String buildPathSuffix()
- Specified by:
buildPathSuffix
in interface HttpRequestOptions
buildFormParameters
public com.google.common.collect.Multimap<String,String> buildFormParameters()
- Description copied from interface:
HttpRequestOptions
- Builds form parameters representing options.
- Specified by:
buildFormParameters
in interface HttpRequestOptions
- Returns:
- map that may contain query parameters.
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2009-2011 jclouds. All Rights Reserved.