Examples of handleRequest()


Examples of org.molgenis.framework.ui.commands.ScreenCommand.handleRequest()

      // delegate to a command
      else if (command != null && command instanceof SimpleCommand)
      {
        logger.debug("delegating to PluginCommand");
        model.setCurrentCommand(command);
        return command.handleRequest(db, request, out);
      }
      else if (action.equals("filter_add"))
      {
        this.addFilters(pager, db, request);
      }
View Full Code Here

Examples of org.openhab.binding.zwave.internal.protocol.serialmessage.ZWaveCommandProcessor.handleRequest()

  private void handleIncomingRequestMessage(SerialMessage incomingMessage) {
    logger.trace("Message type = REQUEST");

    ZWaveCommandProcessor processor = ZWaveCommandProcessor.getMessageDispatcher(incomingMessage.getMessageClass());
    if(processor != null) {
      processor.handleRequest(this, lastSentMessage, incomingMessage);

      if(processor.isTransactionComplete()) {
        notifyEventListeners(new ZWaveTransactionCompletedEvent(this.lastSentMessage));
        transactionCompleted.release();
        logger.trace("Released. Transaction completed permit count -> {}", transactionCompleted.availablePermits());
View Full Code Here

Examples of org.pentaho.platform.uifoundation.chart.CategoryDatasetChartComponent.handleRequest()

    SimpleOutputHandler outputHandler = new SimpleOutputHandler( outputStream, false );
    BaseRequestHandler requestHandler = new BaseRequestHandler( session, null, outputHandler, null, urlFactory );

    try {
      categoryChartComponent.validate( session, requestHandler );
      categoryChartComponent.handleRequest( outputStream, requestHandler, contentType, parameterProviders );
    } catch ( IOException e ) {
      e.printStackTrace();
    }

  }
View Full Code Here

Examples of org.pentaho.platform.uifoundation.chart.DashboardWidgetComponent.handleRequest()

    SimpleOutputHandler outputHandler = new SimpleOutputHandler( outputStream, false );
    BaseRequestHandler requestHandler = new BaseRequestHandler( session, null, outputHandler, null, urlFactory );

    try {
      widget.validate( session, requestHandler );
      widget.handleRequest( outputStream, requestHandler, contentType, parameterProviders );
    } catch ( IOException e ) {
      e.printStackTrace();
    }
    finishTest();
View Full Code Here

Examples of org.pentaho.platform.uifoundation.chart.TimeSeriesCollectionChartComponent.handleRequest()

    SimpleOutputHandler outputHandler = new SimpleOutputHandler( outputStream, false );
    BaseRequestHandler requestHandler = new BaseRequestHandler( session, null, outputHandler, null, urlFactory );

    try {
      timeSeriesChartComponent.validate( session, requestHandler );
      timeSeriesChartComponent.handleRequest( outputStream, requestHandler, contentType, parameterProviders );
    } catch ( IOException e ) {
      e.printStackTrace();
    }
  }
View Full Code Here

Examples of org.pentaho.platform.uifoundation.component.HtmlComponent.handleRequest()

    SimpleOutputHandler outputHandler = new SimpleOutputHandler( outputStream, false );
    BaseRequestHandler requestHandler = new BaseRequestHandler( session, null, outputHandler, null, urlFactory );

    try {
      component.validate( session, requestHandler );
      component.handleRequest( outputStream, requestHandler, contentType, parameterProviders );
    } catch ( IOException e ) {
      e.printStackTrace();
    }

    finishTest();
View Full Code Here

Examples of org.springframework.remoting.httpinvoker.HttpInvokerServiceExporter.handleRequest()

            if (! request.getMethod().equalsIgnoreCase("POST")) {
                response.setStatus(500);
            } else {
                RpcContext.getContext().setRemoteAddress(request.getRemoteAddr(), request.getRemotePort());
                try {
                    skeleton.handleRequest(request, response);
                } catch (Throwable e) {
                    throw new ServletException(e);
                }
            }
        }
View Full Code Here

Examples of org.springframework.web.HttpRequestHandler.handleRequest()

    public boolean preHandle(HttpServletRequest request,
                             HttpServletResponse response, Object handler) throws IOException, ServletException {

        if (handler instanceof HttpRequestHandler) {
            HttpRequestHandler resourcehandler = ((HttpRequestHandler) handler);
            resourcehandler.handleRequest(request, response);
            //break interceptor chain
            return false;
        } else {
            LOGGER.warn("handler can not be cast to HttpRequestHandler. It is of class " +
                    handler.getClass().getCanonicalName());
View Full Code Here

Examples of org.springframework.web.servlet.mvc.Controller.handleRequest()

        String path = request.getServletPath();
        String internalPath = path.replaceAll(xmlMarker, "");

        Controller controller = (Controller) getApplicationContext().getBean(internalPath);
        if (controller != null) {
                ModelAndView modelAndView = controller.handleRequest(request, response);
                if (modelAndView.getModel() != null) {
                    TransportableModel tm = new TransportableModel();
                    tm.putAll(modelAndView.getModel());
                    XStream x = new XStream();
                    x.toXML(tm, response.getWriter());
View Full Code Here

Examples of org.springframework.web.servlet.resource.DefaultServletHttpRequestHandler.handleRequest()

    DefaultServletHttpRequestHandler handler = (DefaultServletHttpRequestHandler) handlerMapping.getUrlMap().get("/**");

    assertNotNull(handler);
    assertEquals(Integer.MAX_VALUE, handlerMapping.getOrder());

    handler.handleRequest(new MockHttpServletRequest(), response);

    String expected = "default";
    assertEquals("The ServletContext was not called with the default servlet name", expected, servletContext.url);
    assertEquals("The request was not forwarded", expected, response.getForwardedUrl());
  }
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.