public class BaseController extends Object
| Modifier and Type | Field and Description |
|---|---|
protected CatalogService |
catalogService |
| Constructor and Description |
|---|
BaseController(CatalogService catalogService)
Construct a new
BaseController |
| Modifier and Type | Method and Description |
|---|---|
protected reactor.core.publisher.Mono<AsyncServiceBrokerRequest> |
configureCommonRequestFields(AsyncServiceBrokerRequest request,
String platformInstanceId,
String apiInfoLocation,
String originatingIdentityString,
String requestIdentity,
boolean asyncAccepted)
Sets common headers for the request
|
protected reactor.core.publisher.Mono<ServiceBrokerRequest> |
configureCommonRequestFields(ServiceBrokerRequest request,
String platformInstanceId,
String apiInfoLocation,
String originatingIdentityString,
String requestIdentity)
Sets common headers for the request
|
protected HttpStatus |
getAsyncResponseCode(AsyncServiceBrokerResponse response)
If an asynchronous request is received, then return HTTP 202 Accepted, otherwise HTTP 200 OK
|
protected reactor.core.publisher.Mono<ServiceDefinition> |
getRequiredServiceDefinition(String serviceDefinitionId)
Find the Service Definition for the provided ID.
|
protected reactor.core.publisher.Mono<Plan> |
getRequiredServiceDefinitionPlan(ServiceDefinition serviceDefinition,
String planId)
Find the Plan for the Service Definition and Plan ID.
|
protected reactor.core.publisher.Mono<ServiceDefinition> |
getServiceDefinition(String serviceDefinitionId)
Find the Service Definition for the provided ID, or empty if not found.
|
protected reactor.core.publisher.Mono<Plan> |
getServiceDefinitionPlan(ServiceDefinition serviceDefinition,
String planId)
Find the Plan for the Service Definition and Plan ID, or empty if not found.
|
protected Context |
parseOriginatingIdentity(String originatingIdentityString)
Populates a platform specific context from the originating identity
|
protected CatalogService catalogService
public BaseController(CatalogService catalogService)
BaseControllercatalogService - the catalog serviceprotected reactor.core.publisher.Mono<ServiceBrokerRequest> configureCommonRequestFields(ServiceBrokerRequest request, String platformInstanceId, String apiInfoLocation, String originatingIdentityString, String requestIdentity)
request - the request in which to set the headersplatformInstanceId - the platform instance IDapiInfoLocation - location of the API info endpoint of the platform instanceoriginatingIdentityString - identity of the user that initiated the request from the platformrequestIdentity - identity of the request sent from the platformprotected reactor.core.publisher.Mono<AsyncServiceBrokerRequest> configureCommonRequestFields(AsyncServiceBrokerRequest request, String platformInstanceId, String apiInfoLocation, String originatingIdentityString, String requestIdentity, boolean asyncAccepted)
request - the request in which to set the headersplatformInstanceId - the platform instance IDapiInfoLocation - location of the API info endpoint of the platform instanceoriginatingIdentityString - identity of the user that initiated the request from the platformrequestIdentity - identity of the request sent from the platformasyncAccepted - does the platform accept asynchronous requestsprotected reactor.core.publisher.Mono<ServiceDefinition> getRequiredServiceDefinition(String serviceDefinitionId)
serviceDefinitionId - the service definition IDprotected reactor.core.publisher.Mono<ServiceDefinition> getServiceDefinition(String serviceDefinitionId)
serviceDefinitionId - the service definition IDprotected reactor.core.publisher.Mono<Plan> getServiceDefinitionPlan(ServiceDefinition serviceDefinition, String planId)
serviceDefinition - the Service DefinitionplanId - the plan IDprotected reactor.core.publisher.Mono<Plan> getRequiredServiceDefinitionPlan(ServiceDefinition serviceDefinition, String planId)
serviceDefinition - the Service DefinitionplanId - the plan IDprotected Context parseOriginatingIdentity(String originatingIdentityString)
originatingIdentityString - identity of the user that initiated the request from the platformprotected HttpStatus getAsyncResponseCode(AsyncServiceBrokerResponse response)
response - the response