Package org.jclouds.http.options
Class BaseHttpRequestOptions
- java.lang.Object
-
- org.jclouds.http.options.BaseHttpRequestOptions
-
- All Implemented Interfaces:
HttpRequestOptions
- Direct Known Subclasses:
AccountInDomainOptions
,AddClusterOptions
,AddHostOptions
,AddLoadBalancerOptions
,AddRecordOptions
,AddSecondaryStorageOptions
,AddServerOptions
,AssumeRoleOptions
,AttachOptions
,BaseEC2RequestOptions
,BaseListOptions
,BuildOptions
,CommitOptions
,ComposeObjectOptions
,CopyObjectOptions
,CopyObjectOptions
,CopyOptions
,CreateAccountOptions
,CreateAccountOptions
,CreateContainerOptions
,CreateDomainOptions
,CreateFirewallRuleOptions
,CreateImageOptions
,CreateIPForwardingRuleOptions
,CreateOptions
,CreatePodOptions
,CreateQueueOptions
,CreateTagsOptions
,CreateTemplateOptions
,CreateUserOptions
,CreateVMGroupOptions
,CreateZoneOptions
,DeleteBucketOptions
,DeleteHostOptions
,DeleteImageOptions
,DeleteISOOptions
,DeleteObjectOptions
,DeleteTagsOptions
,DeleteTemplateOptions
,DestroyServerOptions
,DomainOptions
,ExtractISOOptions
,ExtractTemplateOptions
,FederatedUserOptions
,GenerateUsageRecordsOptions
,GetBucketOptions
,GetImageListOptions
,GetIpListOptions
,GetJobListOptions
,GetMetricStatisticsOptions
,GetOptions
,GetServerListOptions
,InsertBucketOptions
,InsertObjectOptions
,ListAlarmHistoryOptions
,ListAlarmsForMetric
,ListAlarmsOptions
,ListAlertsOptions
,ListBucketOptions
,ListCapacityOptions
,ListCDNContainerOptions
,ListClustersOptions
,ListConfigurationEntriesOptions
,ListContainerOptions
,ListContainerOptions
,ListDiskOfferingsOptions
,ListDomainChildrenOptions
,ListDomainsOptions
,ListEventsOptions
,ListImageOptions
,ListIpOptions
,ListMetricsOptions
,ListNetworkOfferingsOptions
,ListObjectOptions
,ListOptions
,ListOptions
,ListOptions
,ListOptions
,ListOptions
,ListOptions
,ListOSTypesOptions
,ListPodsOptions
,ListQueuesOptions
,ListResourceLimitsOptions
,ListServiceOfferingsOptions
,ListSSHKeyPairsOptions
,ListStoragePoolsOptions
,ListVMGroupsOptions
,ListZonesOptions
,PaginationOptions
,PutBucketOptions
,PutObjectOptions
,PutOptions
,PutOptions
,ReceiveMessageOptions
,RemoveContainerOptions
,RewriteObjectOptions
,SaveAlarmOptions
,SaveImageOptions
,SearchOptions
,SendMessageOptions
,ServerStatusOptions
,SessionCredentialsOptions
,StopVirtualMachineOptions
,UpdateAccountOptions
,UpdateBucketOptions
,UpdateCDNContainerOptions
,UpdateClusterOptions
,UpdateContainerOptions
,UpdateDomainOptions
,UpdateHostOptions
,UpdateImageOptions
,UpdateISOOptions
,UpdateISOPermissionsOptions
,UpdateLoadBalancerRuleOptions
,UpdateObjectOptions
,UpdatePodOptions
,UpdateServerOptions
,UpdateTemplateOptions
,UpdateTemplatePermissionsOptions
,UpdateUserOptions
,UpdateVirtualMachineOptions
,UpdateVMGroupOptions
,UpdateZoneOptions
public class BaseHttpRequestOptions extends Object implements HttpRequestOptions
- See Also:
HttpRequestOptions
-
-
Field Summary
Fields Modifier and Type Field Description protected com.google.common.collect.Multimap<String,String>
formParameters
protected com.google.common.collect.Multimap<String,String>
headers
protected String
pathSuffix
protected String
payload
protected com.google.common.collect.Multimap<String,String>
queryParameters
-
Constructor Summary
Constructors Constructor Description BaseHttpRequestOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.google.common.collect.Multimap<String,String>
buildFormParameters()
Builds form parameters representing options.String
buildPathSuffix()
com.google.common.collect.Multimap<String,String>
buildQueryParameters()
Builds query parameters representing options.com.google.common.collect.Multimap<String,String>
buildRequestHeaders()
Builds headers representing options.String
buildStringPayload()
boolean
equals(Object obj)
protected String
getFirstFormOrNull(String string)
protected String
getFirstHeaderOrNull(String string)
protected String
getFirstQueryOrNull(String string)
int
hashCode()
protected void
replaceHeader(String key, String value)
String
toString()
-
-
-
Method Detail
-
buildStringPayload
public String buildStringPayload()
- Specified by:
buildStringPayload
in interfaceHttpRequestOptions
-
buildRequestHeaders
public com.google.common.collect.Multimap<String,String> buildRequestHeaders()
Builds headers representing options.- Specified by:
buildRequestHeaders
in interfaceHttpRequestOptions
- 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 interfaceHttpRequestOptions
- Returns:
- map that may contain query parameters.
-
buildPathSuffix
public String buildPathSuffix()
- Specified by:
buildPathSuffix
in interfaceHttpRequestOptions
-
buildFormParameters
public com.google.common.collect.Multimap<String,String> buildFormParameters()
Description copied from interface:HttpRequestOptions
Builds form parameters representing options.- Specified by:
buildFormParameters
in interfaceHttpRequestOptions
- Returns:
- map that may contain query parameters.
-
-