org.jclouds.rest.binders
Class BindMapToStringPayload

java.lang.Object
  extended by org.jclouds.rest.binders.BindMapToStringPayload
All Implemented Interfaces:
Binder, MapBinder

@Singleton
public class BindMapToStringPayload
extends Object
implements MapBinder

Author:
Adrian Cole

Field Summary
protected  javax.inject.Provider<javax.ws.rs.core.UriBuilder> uriBuilders
           
 
Constructor Summary
BindMapToStringPayload(javax.inject.Provider<javax.ws.rs.core.UriBuilder> uriBuilders)
           
 
Method Summary
<R extends HttpRequest>
R
bindToRequest(R request, Map<String,String> postParams)
          creates and binds the POST payload to the request using parameters specified.
<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

uriBuilders

protected final javax.inject.Provider<javax.ws.rs.core.UriBuilder> uriBuilders
Constructor Detail

BindMapToStringPayload

@Inject
public BindMapToStringPayload(javax.inject.Provider<javax.ws.rs.core.UriBuilder> uriBuilders)
Method Detail

bindToRequest

public <R extends HttpRequest> R bindToRequest(R request,
                                               Map<String,String> postParams)
Description copied from interface: MapBinder
creates and binds the POST payload to the request using parameters specified.

Specified by:
bindToRequest in interface MapBinder
See Also:
PayloadParam

bindToRequest

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


Copyright © 2009-2011 jclouds. All Rights Reserved.