Examples of handleRequest()


Examples of org.gtugs.web.AboutController.handleRequest()

*/
public class AboutControllerTests extends TestCase {

  public void testHandleRequestView() throws Exception{
    AboutController controller = new AboutController();
    ModelAndView modelAndView = controller.handleRequest(null, null);
    assertEquals("about", modelAndView.getViewName());
  }
}
View Full Code Here

Examples of org.jboss.dashboard.ui.components.BeanDispatcher.handleRequest()

    /**
     * Action that dispatches to a factory component.
     */
    public CommandResponse panelActionFactory(final Panel panel, CommandRequest request) throws Exception {
        BeanDispatcher requestHandler = CDIBeanLocator.getBeanByType(BeanDispatcher.class);
        CommandResponse factoryResponse = requestHandler.handleRequest(request);
        String action = request.getRequestObject().getParameter(FactoryURL.PARAMETER_ACTION);
        String beanName = request.getRequestObject().getParameter(FactoryURL.PARAMETER_BEAN);
        if (action != null) {
            BeanHandler handler = (BeanHandler) CDIBeanLocator.getBeanByNameOrType(beanName);
            if (handler != null) action = handler.getActionForShortcut(action);
View Full Code Here

Examples of org.jboss.dashboard.ui.components.BeanDispatcher.handleRequest()

    /**
     * Action that dispatches to a factory component.
     */
    public CommandResponse panelActionFactory(final Panel panel, CommandRequest request) throws Exception {
        BeanDispatcher requestHandler = CDIBeanLocator.getBeanByType(BeanDispatcher.class);
        CommandResponse factoryResponse = requestHandler.handleRequest(request);
        String action = request.getRequestObject().getParameter(FactoryURL.PARAMETER_ACTION);
        String beanName = request.getRequestObject().getParameter(FactoryURL.PARAMETER_BEAN);
        if (action != null) {
            BeanHandler handler = (BeanHandler) CDIBeanLocator.getBeanByNameOrType(beanName);
            if (handler != null) action = handler.getActionForShortcut(action);
View Full Code Here

Examples of org.jboss.dashboard.ui.components.FactoryRequestHandler.handleRequest()

    /**
     * Action that dispatches to a factory component.
     */
    public CommandResponse panelActionFactory(final Panel panel, CommandRequest request) throws Exception {
        FactoryRequestHandler requestHandler = (FactoryRequestHandler) Factory.lookup("org.jboss.dashboard.ui.components.FactoryRequestHandler");
        CommandResponse factoryResponse = requestHandler.handleRequest(request);
        String action = request.getRequestObject().getParameter(FactoryURL.PARAMETER_PROPERTY);
        String componentName = request.getRequestObject().getParameter(FactoryURL.PARAMETER_BEAN);
        if (action != null) {
            HandlerFactoryElement handler = (HandlerFactoryElement)Factory.lookup(componentName);
            if (handler != null) action = handler.getActionForShortcut(action);
View Full Code Here

Examples of org.jboss.ws.core.jaxrpc.handler.HandlerChainBaseImpl.handleRequest()

   @Override
   protected boolean callRequestHandlerChain(QName portName, HandlerType type)
   {
      SOAPMessageContextJAXRPC msgContext = (SOAPMessageContextJAXRPC)MessageContextAssociation.peekMessageContext();
      HandlerChainBaseImpl handlerChain = (HandlerChainBaseImpl)jaxrpcService.getHandlerChain(portName);
      return (handlerChain != null ? handlerChain.handleRequest(msgContext, type) : true);
   }

   @Override
   protected boolean callResponseHandlerChain(QName portName, HandlerType type)
   {
View Full Code Here

Examples of org.jboss.wsf.spi.invocation.RequestHandler.handleRequest()

         try
         {
            InvocationContext invContext = new InvocationContext();
            invContext.setTargetBean(this);

            reqHandler.handleRequest(endpoint, inputStream, outStream, invContext);
         }
         catch (Exception ex)
         {
            throw new RemoteException("Cannot process SOAP request", ex);
         }
View Full Code Here

Examples of org.jolokia.handler.JsonRequestHandler.handleRequest()

        JMXConnector connector = getConnector(pJmxReq);
        try {
            MBeanServerConnection connection = connector.getMBeanServerConnection();
            if (handler.handleAllServersAtOnce(pJmxReq)) {
                // There is no way to get remotely all MBeanServers ...
                return handler.handleRequest(new HashSet<MBeanServerConnection>(Arrays.asList(connection)),pJmxReq);
            } else {
                return handler.handleRequest(connection,pJmxReq);
            }
        } finally {
            releaseConnector(connector);
View Full Code Here

Examples of org.keycloak.adapters.PreAuthActionsHandler.handleRequest()

    public void handleRequest(HttpServerExchange exchange) throws Exception {
        UndertowHttpFacade facade = new UndertowHttpFacade(exchange);
        final ServletRequestContext servletRequestContext = exchange.getAttachment(ServletRequestContext.ATTACHMENT_KEY);
        SessionManagementBridge bridge = new SessionManagementBridge(userSessionManagement, servletRequestContext.getDeployment().getSessionManager());
        PreAuthActionsHandler handler = new PreAuthActionsHandler(bridge, deploymentContext, facade);
        if (handler.handleRequest()) return;
        next.handleRequest(exchange);
    }
}
View Full Code Here

Examples of org.landal.mvcsample.web.controller.InventoryController.handleRequest()

public class InventoryControllerTest extends TestCase {

  public void testHandleRequestView() throws Exception {
    InventoryController controller = new InventoryController();
    controller.setProductManager(new SimpleProductManager());
    ModelAndView modelAndView = controller.handleRequest(null, null);
    assertEquals("hello", modelAndView.getViewName());
    assertNotNull(modelAndView.getModel());
    Map modelMap = (Map) modelAndView.getModel().get("model");
    String nowValue = (String) modelMap.get("now");
    assertNotNull(nowValue);
View Full Code Here

Examples of org.molgenis.framework.ui.ApplicationController.handleRequest()

          {
            // screen does not exists, ignore request
          }
        }

        if (Show.SHOW_CLOSE.equals(appController.handleRequest(db, request, null)))
        {
          // if close, then write a close script
          PrintWriter writer = response.getResponse().getWriter();
          writer.write("<html><head></head><body><script>window.close();</script></body></html>");
          writer.close();
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.