Package org.ofbiz.webapp.control

Examples of org.ofbiz.webapp.control.RequestHandler.runEvent()


        ConfigXMLReader.ControllerConfig controllerConfig = rh.getControllerConfig();
        String requestUri = (String) request.getAttribute("thisRequestUri");
        RequestMap requestMap = controllerConfig.requestMapMap.get(requestUri);
        String eventResponse = null;
        try {
            eventResponse = rh.runEvent(request, response, createSurveyResponseEvent, requestMap, null);
        } catch (EventHandlerException e) {
            Debug.logError(e, module);
            return "error";
        }
        if (!"success".equals(eventResponse)) {
View Full Code Here


            throws EventHandlerException {
        ServletContext application = ((ServletContext) request.getAttribute("servletContext"));
        RequestHandler handler = (RequestHandler) application.getAttribute("_REQUEST_HANDLER_");
        ConfigXMLReader.ControllerConfig controllerConfig = handler.getControllerConfig();
        ConfigXMLReader.RequestMap requestMap = controllerConfig.requestMapMap.get(requestUri);
        return handler.runEvent(request, response, requestMap.event, requestMap, "unknown");
    }
}
View Full Code Here

        ConfigXMLReader.ControllerConfig controllerConfig = rh.getControllerConfig();
        String requestUri = (String) request.getAttribute("thisRequestUri");
        RequestMap requestMap = controllerConfig.getRequestMapMap().get(requestUri);
        String eventResponse = null;
        try {
            eventResponse = rh.runEvent(request, response, createSurveyResponseEvent, requestMap, null);
        } catch (EventHandlerException e) {
            Debug.logError(e, module);
            return "error";
        }
        if (!"success".equals(eventResponse)) {
View Full Code Here

            throws EventHandlerException {
        ServletContext application = ((ServletContext) request.getAttribute("servletContext"));
        RequestHandler handler = (RequestHandler) application.getAttribute("_REQUEST_HANDLER_");
        ConfigXMLReader.ControllerConfig controllerConfig = handler.getControllerConfig();
        ConfigXMLReader.RequestMap requestMap = controllerConfig.getRequestMapMap().get(requestUri);
        return handler.runEvent(request, response, requestMap.event, requestMap, "unknown");
    }
}
View Full Code Here

        RequestHandler handler = (RequestHandler) application.getAttribute("_REQUEST_HANDLER_");
        RequestManager rm = handler.getRequestManager();
        String eventType = rm.getEventType(requestUri);
        String eventPath = rm.getEventPath(requestUri);
        String eventMethod = rm.getEventMethod(requestUri);
        return handler.runEvent(request, response, eventType, eventPath, eventMethod);       
    }
}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.