@RestController public class ServiceInstanceBindingController extends BaseController
catalogService
Constructor and Description |
---|
ServiceInstanceBindingController(CatalogService catalogService,
ServiceInstanceBindingService serviceInstanceBindingService) |
Modifier and Type | Method and Description |
---|---|
ResponseEntity<?> |
createServiceInstanceBinding(Map<String,String> pathVariables,
String serviceInstanceId,
String bindingId,
String apiInfoLocation,
String originatingIdentityString,
CreateServiceInstanceBindingRequest request) |
ResponseEntity<String> |
deleteServiceInstanceBinding(Map<String,String> pathVariables,
String serviceInstanceId,
String bindingId,
String serviceDefinitionId,
String planId,
String apiInfoLocation,
String originatingIdentityString) |
ResponseEntity<ErrorMessage> |
handleException(ServiceInstanceBindingExistsException ex) |
getErrorResponse, getRequiredServiceDefinition, getServiceDefinition, handleException, handleException, handleException, handleException, handleException, handleException, handleException, handleException, handleException, parseOriginatingIdentity
@Autowired public ServiceInstanceBindingController(CatalogService catalogService, ServiceInstanceBindingService serviceInstanceBindingService)
@RequestMapping(value={"/{cfInstanceId}/v2/service_instances/{instanceId}/service_bindings/{bindingId}","/v2/service_instances/{instanceId}/service_bindings/{bindingId}"}, method=PUT) public ResponseEntity<?> createServiceInstanceBinding(@PathVariable Map<String,String> pathVariables, @PathVariable(value="instanceId") String serviceInstanceId, @PathVariable(value="bindingId") String bindingId, @RequestHeader(value="X-Api-Info-Location",required=false) String apiInfoLocation, @RequestHeader(value="X-Broker-API-Originating-Identity",required=false) String originatingIdentityString, @RequestBody CreateServiceInstanceBindingRequest request)
@RequestMapping(value={"/{cfInstanceId}/v2/service_instances/{instanceId}/service_bindings/{bindingId}","/v2/service_instances/{instanceId}/service_bindings/{bindingId}"}, method=DELETE) public ResponseEntity<String> deleteServiceInstanceBinding(@PathVariable Map<String,String> pathVariables, @PathVariable(value="instanceId") String serviceInstanceId, @PathVariable(value="bindingId") String bindingId, @RequestParam(value="service_id") String serviceDefinitionId, @RequestParam(value="plan_id") String planId, @RequestHeader(value="X-Api-Info-Location",required=false) String apiInfoLocation, @RequestHeader(value="X-Broker-API-Originating-Identity",required=false) String originatingIdentityString)
@ExceptionHandler(value=ServiceInstanceBindingExistsException.class) public ResponseEntity<ErrorMessage> handleException(ServiceInstanceBindingExistsException ex)