public class ControllerRegistry extends Object
| Constructor and Description |
|---|
ControllerRegistry(List<BaseController> baseControllers) |
| Modifier and Type | Method and Description |
|---|---|
void |
addController(BaseController controller)
Adds Katharsis controller to the registry.
|
BaseController |
getController(JsonPath jsonPath,
String requestType)
Iterate over all registered controllers to get the first suitable one.
|
public ControllerRegistry(List<BaseController> baseControllers)
public void addController(BaseController controller)
controller - a controller to be addedpublic BaseController getController(JsonPath jsonPath, String requestType)
jsonPath - built JsonPath object mad from request pathrequestType - type of a HTTP requestCopyright © 2015. All Rights Reserved.