public abstract class AsyncParameterizedServiceInstanceRequest extends AsyncServiceBrokerRequest
Modifier and Type | Field and Description |
---|---|
protected Map<String,Object> |
parameters |
ASYNC_REQUEST_PARAMETER, asyncAccepted
API_INFO_LOCATION_HEADER, apiInfoLocation, BINDING_ID_PATH_VARIABLE, INSTANCE_ID_PATH_VARIABLE, ORIGINATING_IDENTITY_HEADER, originatingIdentity, PLAN_ID_PARAMETER, PLATFORM_INSTANCE_ID_VARIABLE, platformInstanceId, 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)
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, setAsyncAccepted
getApiInfoLocation, getOriginatingIdentity, getPlatformInstanceId, setApiInfoLocation, setOriginatingIdentity, setPlatformInstanceId
protected AsyncParameterizedServiceInstanceRequest()
AsyncParameterizedServiceInstanceRequest
protected AsyncParameterizedServiceInstanceRequest(Map<String,Object> parameters, Context context, boolean asyncAccepted, String platformInstanceId, String apiInfoLocation, Context originatingIdentity)
AsyncParameterizedServiceInstanceRequest
parameters
- 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 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 AsyncServiceBrokerRequest
public boolean canEqual(Object other)
ServiceBrokerRequest
canEqual
in class AsyncServiceBrokerRequest
other
- the other objectpublic int hashCode()
hashCode
in class AsyncServiceBrokerRequest
public String toString()
toString
in class AsyncServiceBrokerRequest