Interface IHandlerManagementService<SimulationResponse,SimulationRequest>
- Type Parameters:
SimulationResponse- This object contains the execution status of a set of handlers used in a simulation operation. The returned simulation response object contains an array of HandlerSimulationStatus objects, which contains the name of the handler the execution status.SimulationRequest- This object contains the parameters required for performing a simulation of handlers on the registry. This object can capture information such as operation, mediaType, path and other optional parameters.
public interface IHandlerManagementService<SimulationResponse,SimulationRequest>
Provides functionality to list (view, edit, delete), and simulate handlers configured on the
Registry.
Statistics:
Statistics:
- createHandler
- deleteHandler
- updateHandler
-
Method Summary
Modifier and TypeMethodDescriptionbooleancreateHandler(String payload) Method to create a handler using the provided configuration.booleandeleteHandler(String name) Method to delete the configuration of a named handler.Method to obtain the location at which the handler collection is stored on the registry.Method to obtain the configuration of a named handler.String[]Method to obtain the list of handlers that have been configured through the Handler Administration API.voidsetHandlerCollectionLocation(String location) Method to set the location at which the handler collection is stored on the registry.simulate(SimulationRequest request) Method to simulate handlers on a registry.booleanupdateHandler(String name, String payload) Method to update the configuration of a named handler, using the provided configuration
-
Method Details
-
getHandlerCollectionLocation
Method to obtain the location at which the handler collection is stored on the registry.- Returns:
- the resource path of the handler collection.
- Throws:
Exception- if the operation failed.
-
setHandlerCollectionLocation
Method to set the location at which the handler collection is stored on the registry.- Parameters:
location- the resource path of the handler collection.- Throws:
Exception- if the operation failed.
-
getHandlerList
Method to obtain the list of handlers that have been configured through the Handler Administration API.- Returns:
- the list of handlers.
- Throws:
Exception- if the operation failed.
-
getHandlerConfiguration
Method to obtain the configuration of a named handler.- Parameters:
name- the name of the handler.- Returns:
- the handler configuration.
- Throws:
Exception- if the operation failed.
-
deleteHandler
Method to delete the configuration of a named handler.- Parameters:
name- the name of the handler.- Returns:
- whether the operation was successful.
- Throws:
Exception- if an error occurred.
-
createHandler
Method to create a handler using the provided configuration.- Parameters:
payload- the handler configuration.- Returns:
- whether the operation was successful.
- Throws:
Exception- if an error occurred.
-
updateHandler
Method to update the configuration of a named handler, using the provided configuration- Parameters:
name- the name of the handler.payload- the handler configuration.- Returns:
- whether the operation was successful.
- Throws:
Exception- if an error occurred.
-
simulate
Method to simulate handlers on a registry.- Parameters:
request- the simulation request object.- Returns:
- the response containing the status of the handler execution.
- Throws:
Exception- if the operation failed.
-