Class DefaultRequestHandler
java.lang.Object
de.hybris.platform.cockpit.session.impl.AbstractRequestHandler
de.hybris.platform.cockpit.session.impl.DefaultRequestHandler
- All Implemented Interfaces:
RequestHandler
Default Cockpit
RequestHandler. Supports activation of Cockpit perspectives in addition to the generic
RequestEventHandler mechanism.-
Field Summary
FieldsFields inherited from interface de.hybris.platform.cockpit.session.RequestHandler
EVENTS_KEY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetRequestedPerspective(Map<String, String[]> params) voidhandleRequest(Map<String, String[]> params) Called whenever a new HTTP request is received.protected voidhandleRequestEvent(UICockpitPerspective perspective, List<String> events, Map<String, String[]> params) Delegates the cockpit events triggered by the use of HTTP request parameters to the registeredRequestEventHandlers.Methods inherited from class de.hybris.platform.cockpit.session.impl.AbstractRequestHandler
addRequestEventHandler, getRequestEventHandlers, removeRequestEventHandler, setRequestEventHandlers
-
Field Details
-
PERSP_KEY
- See Also:
-
-
Constructor Details
-
DefaultRequestHandler
public DefaultRequestHandler()
-
-
Method Details
-
getRequestedPerspective
-
handleRequest
Called whenever a new HTTP request is received. Handles request events by calling the appropriateRequestEventHandlers registered for the event in question.- Parameters:
params- HTTP request parameters- See Also:
-
handleRequestEvent
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 registeredRequestEventHandlers.- Parameters:
perspective- the active perspectiveevents- names of the triggered eventsparams- HTTP request parameters
-