public abstract class AsyncParameterizedServiceInstanceRequest extends AsyncServiceBrokerRequest
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,Object> |
parameters |
ASYNC_REQUEST_PARAMETER, asyncAcceptedAPI_INFO_LOCATION_HEADER, apiInfoLocation, BINDING_ID_PATH_VARIABLE, INSTANCE_ID_PATH_VARIABLE, ORIGINATING_IDENTITY_HEADER, originatingIdentity, PLAN_ID_PARAMETER, PLATFORM_INSTANCE_ID_VARIABLE, platformInstanceId, REQUEST_IDENTITY_HEADER, requestIdentity, SERVICE_ID_PARAMETER| Modifier | Constructor and Description |
|---|---|
protected |
AsyncParameterizedServiceInstanceRequest()
Construct a new
AsyncParameterizedServiceInstanceRequest |
protected |
AsyncParameterizedServiceInstanceRequest(Map<String,Object> parameters,
Context context,
boolean asyncAccepted,
String platformInstanceId,
String apiInfoLocation,
Context originatingIdentity,
String requestIdentity)
Construct a new
AsyncParameterizedServiceInstanceRequest |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canEqual(Object other)
Is another object type compatible with this object
|
boolean |
equals(Object o) |
Context |
getContext()
Get the platform-specific contextual information for the service instance.
|
Map<String,Object> |
getParameters()
Get any parameters passed by the user, with the user-supplied JSON structure converted to a Map.
|
<T> T |
getParameters(Class<T> cls)
Get any parameters passed by the user, with the user-supplied JSON structure mapped to fields of the specified
object type.
|
int |
hashCode() |
String |
toString() |
isAsyncAccepted, setAsyncAcceptedgetApiInfoLocation, getOriginatingIdentity, getPlatformInstanceId, getRequestIdentity, setApiInfoLocation, setOriginatingIdentity, setPlatformInstanceId, setRequestIdentityprotected AsyncParameterizedServiceInstanceRequest()
AsyncParameterizedServiceInstanceRequestprotected AsyncParameterizedServiceInstanceRequest(Map<String,Object> parameters, Context context, boolean asyncAccepted, String platformInstanceId, String apiInfoLocation, Context originatingIdentity, String requestIdentity)
AsyncParameterizedServiceInstanceRequestparameters - the parameterscontext - the contextasyncAccepted - does the platform accept asynchronous requestsplatformInstanceId - the platform instance IDapiInfoLocation - location of the API info endpoint of the platform instanceoriginatingIdentity - identity of the user that initiated the request from the platformrequestIdentity - identity of the request sent from the platformpublic Map<String,Object> getParameters()
This value is set from the parameters field in the body of the request from the platform.
The platform will pass the user-supplied JSON structure to the service broker as-is. The service broker is responsible for validating the contents of the parameters for correctness or applicability.
public <T> T getParameters(Class<T> cls)
This value is set from the parameters field in the body of the request from the platform.
An object of the specified type will be instantiated, and value from the parameters JSON will be mapped to the object using Java Bean mapping rules.
The platform will pass the user-supplied JSON structure to the service broker as-is. The service broker is responsible for validating the contents of the parameters for correctness or applicability.
T - the type of the object to instantiate and populatecls - the Class representing the type of object to map the parameter key/value pairs topublic Context getContext()
This value is set from the context field in the body of the request from the platform.
public boolean equals(Object o)
equals in class AsyncServiceBrokerRequestpublic boolean canEqual(Object other)
ServiceBrokerRequestcanEqual in class AsyncServiceBrokerRequestother - the other objectpublic int hashCode()
hashCode in class AsyncServiceBrokerRequestpublic String toString()
toString in class AsyncServiceBrokerRequest