Package org.jclouds.profitbricks.binder
Class BaseProfitBricksRequestBinder<T>
java.lang.Object
org.jclouds.profitbricks.binder.BaseProfitBricksRequestBinder<T>
- Direct Known Subclasses:
AddFirewallRuleToNicRequestBinder
,AddRomDriveToServerRequestBinder
,ConnectStorageToServerRequestBinder
,CreateDataCenterRequestBinder
,CreateLoadBalancerRequestBinder
,CreateNicRequestBinder
,CreateServerRequestBinder
,CreateSnapshotRequestBinder
,CreateStorageRequestBinder
,DeregisterLoadBalancerRequestBinder
,FirewallBinder
,RegisterLoadBalancerRequestBinder
,RollbackSnapshotRequestBinder
,SetInternetAccessBinder
,UpdateDataCenterRequestBinder
,UpdateLoadBalancerRequestBinder
,UpdateNicRequestBinder
,UpdateServerRequestBinder
,UpdateSnapshotRequestBinder
,UpdateStorageRequestBinder
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<R extends HttpRequest>
RbindToRequest
(R request, Object input) <R extends HttpRequest>
RbindToRequest
(R request, Map<String, Object> postParams) creates and binds the POST payload to the request using parameters specified.protected abstract String
createPayload
(T payload) protected <R extends HttpRequest>
RcreateRequest
(R fromRequest, String payload) protected static String
formatIfNotEmpty
(String pattern, Object param) protected static String
nullableToString
(Object object)
-
Field Details
-
paramName
-
-
Constructor Details
-
BaseProfitBricksRequestBinder
-
-
Method Details
-
bindToRequest
Description copied from interface:MapBinder
creates and binds the POST payload to the request using parameters specified.- Specified by:
bindToRequest
in interfaceMapBinder
- See Also:
-
bindToRequest
- Specified by:
bindToRequest
in interfaceBinder
-
createPayload
-
formatIfNotEmpty
-
nullableToString
-
createRequest
-