Examples of dispatch()


Examples of com.voyagegames.java.tracking.JsonDispatcher.dispatch()

    final JsonDispatcherConfig config = new JsonDispatcherConfig();
    config.callback = new TestDispatchCallback();
   
    final JsonDispatcher disp = new JsonDispatcher(config);

    assertTrue(!disp.dispatch());
  }

  @Test
  public void testDispatchIAccumulator() {
    final BasicAccumulator acc = new BasicAccumulator();
View Full Code Here

Examples of de.arago.portlet.ActionDispatcher.dispatch()

    @Test
    public void testDispatchDoesNotExist() throws IllegalAccessException {
        ActionDispatcher a            = new ActionDispatcher(ActionDispatcherTest.class);
        HashMap<Object, Object> data = new HashMap<Object, Object>();

        a.dispatch("testActionDoesNotExist", new TestDataWrapper(data));

        if (data.containsKey("testActionExecuted")) throw new IllegalAccessException("action was executed");
    }

    @Test
View Full Code Here

Examples of de.arago.portlet.EventDispatcher.dispatch()

    @Test
    public void testDispatchDoesNotExist() {
        EventDispatcher a = new EventDispatcher(EventDispatcherTest.class);
        Map<Object,Object> data = new HashMap<Object,Object>();
        a.dispatch("testEventDoesNotExist", new TestDataWrapper(data));
    }

    @Test
    public void testDispatch() {
        EventDispatcher a = new EventDispatcher(EventDispatcherTest.class);
View Full Code Here

Examples of de.odysseus.calyxo.control.Dispatcher.dispatch()

        dispatcher = pluginContext.getDispatcher(name);
        if (dispatcher == null) {
          throw new ServletException("Unknown dispatcher '" + name + "' for action '" + config.toInlineString() + "'");
        }
      }
      dispatcher.dispatch(request, response, result);
    }
  }
}
View Full Code Here

Examples of de.odysseus.calyxo.control.impl.DefaultDispatcher.dispatch()

  public void testPath() throws Exception {
    DefaultDispatcher dispatcher = new DefaultDispatcher(module1);
    DispatchConfig dispatch = new DynamicDispatchConfig("/path", false);
    TestResponse response = new TestResponse(false);
    dispatcher.dispatch(request, response, dispatch);
    assertEquals("/path", request.getRecentRequestDispatchPath());
    assertNull(response.getRedirectURL());
  }

  public void testPathRedirect() throws Exception {
View Full Code Here

Examples of edu.harvard.hul.ois.jhove.JhoveBase.dispatch()

                          errorStream)) {

                NullHandler nullHandler = new NullHandler();

                try {
                  jhoveBase.dispatch(_app,
                             null,
                             null,
                             nullHandler,
                             null,
                             new String[] {partFileName});
View Full Code Here

Examples of io.socket.implementor.transport.Transport.dispatch()

                        return;
                    }
                }
            }

            if (transport.dispatch(packet)) {
                log.trace("Packet successfully dispatched. packet={}", packet);
                return;
            }

            log.debug("Transport failed to dispatch packet. transport={}", transport);
View Full Code Here

Examples of io.undertow.server.HttpServerExchange.dispatch()

        final HttpServletRequestImpl requestImpl = ServletRequestContext.requireCurrent().getOriginalRequest();
        final HttpServerExchange exchange = requestImpl.getExchange();
        if(!exchange.isRequestChannelAvailable()) {
            throw UndertowServletMessages.MESSAGES.responseAlreadyCommited();
        }
        exchange.dispatch(SameThreadExecutor.INSTANCE, new Runnable() {
            @Override
            public void run() {
                String path = pathAddition;
                if(!exchange.getRelativePath().endsWith("/")) {
                    path = "/" + path;
View Full Code Here

Examples of javax.faces.context.ExternalContext.dispatch()

        ServletViewResponseWrapper wrappedResponse = new ServletViewResponseWrapper((HttpServletResponse) response);

        externalContext.setResponse(wrappedResponse);
        try
        {
            externalContext.dispatch(viewId);
        }
        catch (FacesException e)
        {
            // try to extract the most likely exceptions here
            // and provide a better error message for them
View Full Code Here

Examples of javax.mail.event.ConnectionEvent.dispatch()

    protected void notifyConnectionListeners(int type) {
        ConnectionEvent event = new ConnectionEvent(this, type);
        Iterator it = _connectionListeners.iterator();
        while (it.hasNext()) {
            TransportListener listener = (TransportListener) it.next();
            event.dispatch(listener);
        }
    }

    protected void notifyFolderListeners(int type) {
        Iterator it = _folderListeners.iterator();
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.