Examples of Dispatcher


Examples of org.apache.synapse.endpoints.dispatch.Dispatcher

        // serialize the parameters
        serializeProperties(loadbalanceEndpoint, endpointElement);
       
        serializeCommonAttributes(endpoint,endpointElement);

        Dispatcher dispatcher = loadbalanceEndpoint.getDispatcher();
        if (dispatcher != null) {

            OMElement sessionElement = fac.createOMElement("session", SynapseConstants.SYNAPSE_OMNAMESPACE);
            if (dispatcher instanceof SoapSessionDispatcher) {
                sessionElement.addAttribute("type", "soap", null);
            } else if (dispatcher instanceof HttpSessionDispatcher) {
                sessionElement.addAttribute("type", "http", null);
            } else if (dispatcher instanceof SimpleClientSessionDispatcher) {
                sessionElement.addAttribute("type", "simpleClientSession", null);
            } else {
                handleException("invalid session dispatcher : " + dispatcher.getClass().getName());
            }

            long sessionTimeout = loadbalanceEndpoint.getSessionTimeout();
            if (sessionTimeout != -1) {
                OMElement sessionTimeoutElement = fac.createOMElement("sessionTimeout",
View Full Code Here

Examples of org.apache.tapestry.services.Dispatcher

        train_getPath(request, "/foo/Bar.baz");

        replay();

        Dispatcher d = new PageRenderDispatcher(resolver, handler);

        assertFalse(d.dispatch(request, response));

        verify();
    }
View Full Code Here

Examples of org.apache.tapestry.services.Dispatcher

        train_getPath(request, "");

        replay();

        Dispatcher d = new PageRenderDispatcher(resolver, handler);

        assertFalse(d.dispatch(request, response));

        verify();
    }
View Full Code Here

Examples of org.apache.tapestry.services.Dispatcher

        replay();

        PageRenderRequestHandler handler = new PageRenderRequestHandlerImpl(cache, processor, renderer, response);

        Dispatcher d = new PageRenderDispatcher(resolver, handler);

        assertTrue(d.dispatch(request, response));

        verify();
    }
View Full Code Here

Examples of org.apache.tapestry.services.Dispatcher

        replay();

        PageRenderRequestHandler handler = new PageRenderRequestHandlerImpl(cache, processor, renderer, response);

        Dispatcher d = new PageRenderDispatcher(resolver, handler);

        assertTrue(d.dispatch(request, response));

        verify();
    }
View Full Code Here

Examples of org.apache.tapestry5.services.Dispatcher

        train_getPath(request, "/foo/bar/Baz.gif");

        replay();

        Dispatcher d = new AssetDispatcher(null, null, null, "1.2.3", null);

        assertFalse(d.dispatch(request, null));

        verify();
    }
View Full Code Here

Examples of org.codehaus.wadi.group.Dispatcher

        listeners = new CopyOnWriteArrayList();
    }

    public void doStart() throws Exception {
        Dispatcher underlyingDisp = dispatcherHolder.getDispatcher();
       
        ServiceSpaceName serviceSpaceName = new ServiceSpaceName(configInfo.getServiceSpaceURI());
        StackContext stackContext = new StackContext(serviceSpaceName,
                underlyingDisp,
                configInfo.getSessionTimeoutSeconds(),
View Full Code Here

Examples of org.dspace.event.Dispatcher

     *                or closing the connection
     */
    public void commit() throws SQLException
    {
        // Commit any changes made as part of the transaction
        Dispatcher dispatcher = null;

        try
        {
            if (events != null)
            {

                if (dispName == null)
                {
                    dispName = EventManager.DEFAULT_DISPATCHER;
                }

                dispatcher = EventManager.getDispatcher(dispName);
                connection.commit();
                dispatcher.dispatch(this);
            }
            else
            {
                connection.commit();
            }
View Full Code Here

Examples of org.eclipse.jetty.server.Dispatcher

                String pathInContext = URIUtil.canonicalPath(URIUtil.decodePath(uriInContext));
                if (pathInContext!=null)
                {
                    String uri = URIUtil.addPaths(getContextPath(),uriInContext);
                    ContextHandler context = ContextHandler.this;
                    return new Dispatcher(context,uri,pathInContext,query);
                }
            }
            catch (Exception e)
            {
                LOG.ignore(e);
View Full Code Here

Examples of org.fusesource.restygwt.client.Dispatcher

        final CallbackFilter cachingCallbackFilter = new CachingCallbackFilter(cache);
        final CallbackFactory callbackFactory = new RetryingCallbackFactory(cachingCallbackFilter,
                new ModelChangeCallbackFilter(eventBus));
        final DispatcherFilter cachingDispatcherFilter = new CachingDispatcherFilter(cache, callbackFactory);
       
        Dispatcher dispatcher = new DefaultFilterawareDispatcher(cachingDispatcherFilter);

        Defaults.setDispatcher(dispatcher);
    }
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.