Package de.fmui.osb.broker
Class AbstractOpenServiceBrokerHandler
- java.lang.Object
-
- de.fmui.osb.broker.AbstractOpenServiceBrokerHandler
-
- All Implemented Interfaces:
OpenServiceBrokerHandler
public abstract class AbstractOpenServiceBrokerHandler extends java.lang.Object implements OpenServiceBrokerHandler
-
-
Constructor Summary
Constructors Constructor Description AbstractOpenServiceBrokerHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FetchBindingResponse
fetchServiceBinding(FetchBindingRequest request)
Handles a fetch binding request.FetchInstanceResponse
fetchServiceInstance(FetchInstanceRequest request)
Handles a fetch instance request.BindingLastOperationResponse
getLastOperationForBinding(BindingLastOperationRequest request)
Handles an last operation request for service bindings.InstanceLastOperationResponse
getLastOperationForInstance(InstanceLastOperationRequest request)
Handles an last operation request for service instances.CatalogResponseBody
readCatalogFromResourceFile(java.lang.String path)
Reads the catalog from a resource file.JSONObject
readJSONFromResourceFile(java.lang.String path)
Reads a JSON object from a resource file.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.fmui.osb.broker.handler.OpenServiceBrokerHandler
authenticate, bind, deprovision, getCatalog, provision, unbind, update
-
-
-
-
Method Detail
-
fetchServiceInstance
public FetchInstanceResponse fetchServiceInstance(FetchInstanceRequest request) throws OpenServiceBrokerException
Description copied from interface:OpenServiceBrokerHandler
Handles a fetch instance request.- Specified by:
fetchServiceInstance
in interfaceOpenServiceBrokerHandler
- Parameters:
request
- the request object- Returns:
- the response object
- Throws:
OpenServiceBrokerException
- to indicate an issue or an invalid request
-
getLastOperationForInstance
public InstanceLastOperationResponse getLastOperationForInstance(InstanceLastOperationRequest request) throws OpenServiceBrokerException
Description copied from interface:OpenServiceBrokerHandler
Handles an last operation request for service instances.- Specified by:
getLastOperationForInstance
in interfaceOpenServiceBrokerHandler
- Parameters:
request
- the request object- Returns:
- the response object
- Throws:
OpenServiceBrokerException
- to indicate an issue or an invalid request
-
fetchServiceBinding
public FetchBindingResponse fetchServiceBinding(FetchBindingRequest request) throws OpenServiceBrokerException
Description copied from interface:OpenServiceBrokerHandler
Handles a fetch binding request.- Specified by:
fetchServiceBinding
in interfaceOpenServiceBrokerHandler
- Parameters:
request
- the request object- Returns:
- the response object
- Throws:
OpenServiceBrokerException
- to indicate an issue or an invalid request
-
getLastOperationForBinding
public BindingLastOperationResponse getLastOperationForBinding(BindingLastOperationRequest request) throws OpenServiceBrokerException
Description copied from interface:OpenServiceBrokerHandler
Handles an last operation request for service bindings.- Specified by:
getLastOperationForBinding
in interfaceOpenServiceBrokerHandler
- Parameters:
request
- the request object- Returns:
- the response object
- Throws:
OpenServiceBrokerException
- to indicate an issue or an invalid request
-
readCatalogFromResourceFile
public CatalogResponseBody readCatalogFromResourceFile(java.lang.String path) throws java.io.IOException
Reads the catalog from a resource file.- Parameters:
path
- the resource path- Returns:
- a ready-to-use
CatalogResponseBody
object - Throws:
java.io.IOException
- if reading or parsing the catalog file fails
-
readJSONFromResourceFile
public JSONObject readJSONFromResourceFile(java.lang.String path) throws java.io.IOException
Reads a JSON object from a resource file.- Parameters:
path
- the resource path- Returns:
- the JSON object
- Throws:
java.io.IOException
- if reading or parsing the catalog file fails
-
-