Examples of dispatchRequest()


Examples of com.eviware.soapui.model.mock.MockRunner.dispatchRequest()

            }

            MockRunner mockRunner = getMatchedMockRunner(getMockRunners(), pathInfo);

            if (mockRunner != null) {
                MockResult result = mockRunner.dispatchRequest(request, response);

                if (maxResults > 0) {
                    synchronized (results) {
                        while (maxResults > 0 && results.size() > maxResults) {
                            results.remove(0);
View Full Code Here

Examples of net.csdn.modules.http.RestController.dispatchRequest()

        RestController controller = injector.getInstance(RestController.class);
        try {
            RestRequest restRequest = new MockRestRequest(path, newParams, method, null);
            HttpServer.setHttpHolder(new HttpHolder(restRequest, response));
            controller.dispatchRequest(restRequest, response);
        } catch (Exception e) {
            catchRenderFinish(e);
        }
        return response;
    }
View Full Code Here

Examples of net.csdn.modules.http.RestController.dispatchRequest()

            }
        }

        RestController controller = injector.getInstance(RestController.class);
        try {
            controller.dispatchRequest(new MockRestRequest(path, newParams, method, rawParamsStr), response);
        } catch (Exception e) {
            catchRenderFinish(e);
        }
        return response;
    }
View Full Code Here

Examples of org.elasticsearch.http.HttpServerAdapter.dispatchRequest()

    final TomcatHttpServerRestChannel restChannel = new TomcatHttpServerRestChannel(
        restRequest, resp, transport.getSecurityService());

    try {

      adapter.dispatchRequest(restRequest, restChannel);
      restChannel.await();

    } catch (final InterruptedException e) {
      throw new ServletException("failed to dispatch request", e);
    } catch (final Exception e) {
View Full Code Here

Examples of org.elasticsearch.http.HttpServerAdapter.dispatchRequest()

    public void handle(String target, Request baseRequest, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException {
        HttpServerAdapter adapter = getTransport().httpServerAdapter();
        JettyHttpServerRestRequest restRequest = new JettyHttpServerRestRequest(request);
        JettyHttpServerRestChannel restChannel = new JettyHttpServerRestChannel(restRequest, response);
        try {
            adapter.dispatchRequest(restRequest, restChannel);
            restChannel.await();
        } catch (InterruptedException e) {
            throw new ServletException("failed to dispatch request", e);
        } catch (Exception e) {
            throw new IOException("failed to dispatch request", e);
View Full Code Here

Examples of org.intalio.tempo.workflow.fds.dispatches.IDispatcher.dispatchRequest()

    public void testNotifyDispatcher() throws Exception {
        IDispatcher dispatcher = Dispatchers.createDispatcher("notifyRequest");

        Document request = createRequest();
        dispatcher.dispatchRequest(request);
        Document response = createResponse();
        dispatcher.dispatchResponse(response);
    }
}
View Full Code Here

Examples of org.intalio.tempo.workflow.fds.dispatches.IDispatcher.dispatchRequest()

                }

                if (dispatcher != null) {
                    // TODO: convert the default processing to an IDispatcher
                    try {
                        Document processedRequest = dispatcher.dispatchRequest(pureRequest);
                        Document wrappedRequest = SoapTools.wrapMessage(processedRequest);
                        String endpoint = dispatcher.getTargetEndpoint();
                        String dispatcherSoapAction = dispatcher.getTargetSoapAction();
                        Document rawResponse = messageSender.requestAndGetReply(wrappedRequest, endpoint, dispatcherSoapAction);
View Full Code Here

Examples of org.olat.core.gui.components.Window.dispatchRequest()

      if (cc != null) {       
        Window currentWindow = cc.getWindow();
        // Check if this is a start URL or a framework URL
        if (ureq.isValidDispatchURI()) {
          // A standard framework request, dispatch by component
          currentWindow.dispatchRequest(ureq, false);
          return;
        } else {         
          // If path contains complete URL, dispose and start from scratch
          Windows.getWindows(ureq).deregisterWindow(currentWindow);
          cc.dispose();         
View Full Code Here

Examples of org.olat.core.gui.components.Window.dispatchRequest()

      Windows.getWindows(ureq.getUserSession()).setAttribute(CONTEXTHELPCHIEFCONTROLLER, cc);     
      Window currentWindow = cc.getWindow();
      currentWindow.setUriPrefix(WebappHelper.getServletContextPath() + PATH_CHELP);
      Windows.getWindows(ureq).registerWindow(currentWindow);
      // finally dispatch the initial request
      currentWindow.dispatchRequest(ureq, true);
     
    } catch (Throwable th) {
      try {
        ChiefController msgcc = MsgFactory.createMessageChiefController(ureq, th);
        // the controller's window must be failsafe also
View Full Code Here

Examples of org.olat.core.gui.components.Window.dispatchRequest()

        WindowControl wControl = cc.getWindowControl();
        WindowControl bwControl = BusinessControlFactory.getInstance().createBusinessWindowControl(bc, wControl);
        NewControllerFactory.getInstance().launch(ureq, bwControl)
        // render the window
        Window w = cc.getWindow();
        w.dispatchRequest(ureq, true); // renderOnly
        return;
      }
     
      // 1. check for direct launch urls, see org.olat.core.dispatcher.jumpin.JumpinConfig
      if (!ureq.isValidDispatchURI()) {
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.