Class DefaultRequestHandler
- java.lang.Object
-
- de.hybris.platform.cockpit.session.impl.AbstractRequestHandler
-
- de.hybris.platform.cockpit.session.impl.DefaultRequestHandler
-
- All Implemented Interfaces:
RequestHandler
public class DefaultRequestHandler extends AbstractRequestHandler
Default CockpitRequestHandler. Supports activation of Cockpit perspectives in addition to the genericRequestEventHandlermechanism.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringPERSP_KEY-
Fields inherited from interface de.hybris.platform.cockpit.session.RequestHandler
EVENTS_KEY
-
-
Constructor Summary
Constructors Constructor Description DefaultRequestHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UICockpitPerspectivegetRequestedPerspective(java.util.Map<java.lang.String,java.lang.String[]> params)voidhandleRequest(java.util.Map<java.lang.String,java.lang.String[]> params)Called whenever a new HTTP request is received.protected voidhandleRequestEvent(UICockpitPerspective perspective, java.util.List<java.lang.String> events, java.util.Map<java.lang.String,java.lang.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 Detail
-
PERSP_KEY
public static final java.lang.String PERSP_KEY
- See Also:
- Constant Field Values
-
-
Method Detail
-
getRequestedPerspective
public UICockpitPerspective getRequestedPerspective(java.util.Map<java.lang.String,java.lang.String[]> params)
-
handleRequest
public void handleRequest(java.util.Map<java.lang.String,java.lang.String[]> params)
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:
AbstractRequestHandler.addRequestEventHandler(String, RequestEventHandler),AbstractRequestHandler.setRequestEventHandlers(Map),RequestEventHandler
-
handleRequestEvent
protected void handleRequestEvent(UICockpitPerspective perspective, java.util.List<java.lang.String> events, java.util.Map<java.lang.String,java.lang.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
-
-