org.jclouds.s3.binders
Class BindAsHostPrefixIfConfigured

java.lang.Object
  extended by org.jclouds.s3.binders.BindAsHostPrefixIfConfigured
All Implemented Interfaces:
Binder
Direct Known Subclasses:
AssignCorrectHostnameAndBindAsHostPrefixIfConfigured

@Singleton
public class BindAsHostPrefixIfConfigured
extends Object
implements Binder

Author:
Adrian Cole

Field Summary
protected  BindAsHostPrefix bindAsHostPrefix
           
protected  boolean isVhostStyle
           
protected  String servicePath
           
protected  javax.inject.Provider<javax.ws.rs.core.UriBuilder> uriBuilderProvider
           
 
Constructor Summary
BindAsHostPrefixIfConfigured(BindAsHostPrefix bindAsHostPrefix, boolean isVhostStyle, String servicePath, javax.inject.Provider<javax.ws.rs.core.UriBuilder> uriBuilderProvider)
           
 
Method Summary
<R extends HttpRequest>
R
bindToRequest(R request, Object payload)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

uriBuilderProvider

protected final javax.inject.Provider<javax.ws.rs.core.UriBuilder> uriBuilderProvider

bindAsHostPrefix

protected final BindAsHostPrefix bindAsHostPrefix

isVhostStyle

protected final boolean isVhostStyle

servicePath

protected final String servicePath
Constructor Detail

BindAsHostPrefixIfConfigured

@Inject
public BindAsHostPrefixIfConfigured(BindAsHostPrefix bindAsHostPrefix,
                                           @Named(value="jclouds.s3.virtual-host-buckets")
                                           boolean isVhostStyle,
                                           @Named(value="jclouds.s3.service-path")
                                           String servicePath,
                                           javax.inject.Provider<javax.ws.rs.core.UriBuilder> uriBuilderProvider)
Method Detail

bindToRequest

public <R extends HttpRequest> R bindToRequest(R request,
                                               Object payload)
Specified by:
bindToRequest in interface Binder


Copyright © 2009-2012 jclouds. All Rights Reserved.