public class DefaultRequestHandler extends AbstractRequestHandler
RequestHandler. Supports activation of Cockpit perspectives in addition to the generic
RequestEventHandler mechanism.| Modifier and Type | Field and Description |
|---|---|
static String |
PERSP_KEY |
EVENTS_KEY| Constructor and Description |
|---|
DefaultRequestHandler() |
| Modifier and Type | Method and Description |
|---|---|
UICockpitPerspective |
getRequestedPerspective(Map<String,String[]> params) |
void |
handleRequest(Map<String,String[]> params)
Called whenever a new HTTP request is received.
|
protected void |
handleRequestEvent(UICockpitPerspective perspective,
List<String> events,
Map<String,String[]> params)
Delegates the cockpit events triggered by the use of HTTP request parameters to the registered
RequestEventHandlers. |
addRequestEventHandler, getRequestEventHandlers, removeRequestEventHandler, setRequestEventHandlerspublic static final String PERSP_KEY
public UICockpitPerspective getRequestedPerspective(Map<String,String[]> params)
public void handleRequest(Map<String,String[]> params)
RequestEventHandlers registered for the event in question.params - HTTP request parametersAbstractRequestHandler.addRequestEventHandler(String, RequestEventHandler),
AbstractRequestHandler.setRequestEventHandlers(Map),
RequestEventHandlerprotected void handleRequestEvent(UICockpitPerspective perspective, List<String> events, Map<String,String[]> params)
RequestEventHandlers.perspective - the active perspectiveevents - names of the triggered eventsparams - HTTP request parametersCopyright © 2017 SAP SE. All Rights Reserved.