Package org.apache.axis

Examples of org.apache.axis.Chain


    {
        TargetedChain transportOne =
                        (TargetedChain)server.getTransport("transport.one");
        assertNotNull("transport.one should be non-null!", transportOne);

        Chain transportOne_responseFlow =
                        (Chain)transportOne.getResponseHandler();
        assertNotNull("transport.two/responseFlow should be non-null!",
                      transportOne_responseFlow);

        Handler transportOne_responseFlow_handlers[] =
                        transportOne_responseFlow.getHandlers();
        assertNotNull("transport.one/responseFlow/handlers should be non-null!",
                      transportOne_responseFlow_handlers);
        assertTrue("transport.one should have exactly 1 handler!",
                (1 == transportOne_responseFlow_handlers.length));

        Handler transportOne_responseFlow_handler =
                        transportOne_responseFlow_handlers[0];
        assertNotNull("transport.one's handler should be non-null!",
                      transportOne_responseFlow_handler);
        assertTrue("transport.one's handler should be a URLMapper!",
                    (transportOne_responseFlow_handler instanceof
                                org.apache.axis.handlers.http.URLMapper));

        Handler transportOne_handler_byName =
                server.getHandler("ForwardReference");
        assertTrue("transport.one's 'ForwardReference' should be same as directly accessed 'BR'!",
                   (transportOne_responseFlow_handler ==
                            transportOne_handler_byName));

        TargetedChain transportTwo =
                (TargetedChain)server.getTransport("transport.two");
        assertNotNull("transport.two should be non-null!", transportTwo);

        Chain transportTwo_requestFlow = (Chain) transportTwo.getRequestHandler();
        assertNotNull("transport.two/requestFlow should be non-null!",
                      transportTwo_requestFlow);

        Handler transportTwo_requestFlow_handlers[] =
                transportTwo_requestFlow.getHandlers();
        assertNotNull("transport.two/requestFlow/handlers should be non-null!",
                      transportTwo_requestFlow_handlers);
        assertTrue("transport.two should have exactly 1 handler!",
                (1 == transportTwo_requestFlow_handlers.length));
View Full Code Here


     * @throws ConfigurationException XXX
     */
    public Handler makeNewInstance(EngineConfiguration registry)
        throws ConfigurationException
    {
        Chain c = new org.apache.axis.SimpleChain();
       
        for (int n = 0; n < handlers.size(); n++) {
            WSDDHandler handler = (WSDDHandler)handlers.get(n);
            Handler h = handler.getInstance(registry);
            if ( h != null )
              c.addHandler(h);
            else
              throw new ConfigurationException("Can't find handler name:'" +
                                               handler.getQName() + "' type:'"+
                                               handler.getType() +
                                               "' in the registry");
View Full Code Here

        tester.run();
    }
   
    public void testChainAnonymousHandler() throws Exception
    {
        Chain chainOne = (Chain) server.getHandler("chain.one");
        assertNotNull("chain.one should be non-null!", chainOne);

        Handler chainOne_handlers[] = chainOne.getHandlers();
        assertNotNull("chain.one/handlers should be non-null!",
                      chainOne_handlers);
        assertTrue("chain.one should have exactly 1 handler!",
                (1 == chainOne_handlers.length));
View Full Code Here

    public void testServiceBackReference() throws Exception
    {
        SOAPService serviceOne = (SOAPService)server.getService("service.one");
        assertNotNull("service.one should be non-null!", serviceOne);

        Chain serviceOne_responseFlow = (Chain)serviceOne.getResponseHandler();
        assertNotNull("service.two/responseFlow should be non-null!",
                      serviceOne_responseFlow);

        Handler serviceOne_responseFlow_handlers[] =
                             serviceOne_responseFlow.getHandlers();
        assertNotNull("service.one/responseFlow/handlers should be non-null!",
                        serviceOne_responseFlow_handlers);
        assertTrue("service.one should have exactly 1 handler!",
                (1 == serviceOne_responseFlow_handlers.length));

        Handler serviceOne_responseFlow_handler =
                        serviceOne_responseFlow_handlers[0];
        assertNotNull("service.one's handler should be non-null!",
                      serviceOne_responseFlow_handler);
        assertTrue("service.one's handler should be a RPCProvider!",
                    (serviceOne_responseFlow_handler instanceof
                         org.apache.axis.providers.java.RPCProvider));

        Handler serviceOne_handler_byName = server.getHandler("BackReference");
        assertTrue("service.one's 'BackReference' should be same as directly accessed 'BR'!",
                   (serviceOne_responseFlow_handler ==
                            serviceOne_handler_byName));

         /*******************************************************
          <service name="service.two" provider="java:MSG">
           <requestFlow>
             <handler type="BackReference"/>
           </requestFlow>
          </service>
         ******************************************************/
        SOAPService serviceTwo = null;
        serviceTwo = (SOAPService) server.getService("service.two");
        assertTrue("service.two should be non-null!",
                   (null != serviceTwo));

        Chain serviceTwo_requestFlow = (Chain) serviceTwo.getRequestHandler();
        assertTrue("service.two/requestFlow should be non-null!",
                (null != serviceTwo_requestFlow));

        Handler serviceTwo_requestFlow_handlers[] =
                                serviceTwo_requestFlow.getHandlers();
        assertTrue("service.two/requestFlow/handlers should be non-null!",
                (null != serviceTwo_requestFlow_handlers));
        assertTrue("service.two should have exactly 1 handler!",
                (1 == serviceTwo_requestFlow_handlers.length));

View Full Code Here

    {
        TargetedChain transportOne =
                        (TargetedChain)server.getTransport("transport.one");
        assertNotNull("transport.one should be non-null!", transportOne);

        Chain transportOne_responseFlow =
                        (Chain)transportOne.getResponseHandler();
        assertNotNull("transport.two/responseFlow should be non-null!",
                      transportOne_responseFlow);

        Handler transportOne_responseFlow_handlers[] =
                        transportOne_responseFlow.getHandlers();
        assertNotNull("transport.one/responseFlow/handlers should be non-null!",
                      transportOne_responseFlow_handlers);
        assertTrue("transport.one should have exactly 1 handler!",
                (1 == transportOne_responseFlow_handlers.length));

        Handler transportOne_responseFlow_handler =
                        transportOne_responseFlow_handlers[0];
        assertNotNull("transport.one's handler should be non-null!",
                      transportOne_responseFlow_handler);
        assertTrue("transport.one's handler should be a URLMapper!",
                    (transportOne_responseFlow_handler instanceof
                                org.apache.axis.handlers.http.URLMapper));

        Handler transportOne_handler_byName =
                server.getHandler("ForwardReference");
        assertTrue("transport.one's 'ForwardReference' should be same as directly accessed 'BR'!",
                   (transportOne_responseFlow_handler ==
                            transportOne_handler_byName));

        TargetedChain transportTwo =
                (TargetedChain)server.getTransport("transport.two");
        assertNotNull("transport.two should be non-null!", transportTwo);

        Chain transportTwo_requestFlow = (Chain) transportTwo.getRequestHandler();
        assertNotNull("transport.two/requestFlow should be non-null!",
                      transportTwo_requestFlow);

        Handler transportTwo_requestFlow_handlers[] =
                transportTwo_requestFlow.getHandlers();
        assertNotNull("transport.two/requestFlow/handlers should be non-null!",
                      transportTwo_requestFlow_handlers);
        assertTrue("transport.two should have exactly 1 handler!",
                (1 == transportTwo_requestFlow_handlers.length));
View Full Code Here

     */
    public Handler makeNewInstance(DeploymentRegistry registry)
        throws Exception
    {
        try {
            Chain         c        = new org.apache.axis.SimpleChain();

            for (int n = 0; n < handlers.size(); n++) {
                WSDDHandler handler = (WSDDHandler)handlers.get(n);
                c.addHandler(handler.getInstance(registry));
            }

            return c;
        }
        catch (Exception e) {
View Full Code Here

     * @throws ConfigurationException XXX
     */
    public Handler makeNewInstance(EngineConfiguration registry)
        throws ConfigurationException
    {
        Chain c = new org.apache.axis.SimpleChain();
       
        for (int n = 0; n < handlers.size(); n++) {
            WSDDHandler handler = (WSDDHandler)handlers.get(n);
            Handler h = handler.getInstance(registry);
            if ( h != null )
              c.addHandler(h);
            else
              throw new ConfigurationException("Can't find handler name:'" +
                                               handler.getQName() + "' type:'"+
                                               handler.getType() +
                                               "' in the registry");
View Full Code Here

     * @throws ConfigurationException XXX
     */
    public Handler makeNewInstance(EngineConfiguration registry)
        throws ConfigurationException
    {
        Chain c = new org.apache.axis.SimpleChain();
       
        for (int n = 0; n < handlers.size(); n++) {
            WSDDHandler handler = (WSDDHandler)handlers.get(n);
            Handler h = handler.getInstance(registry);
            if ( h != null )
              c.addHandler(h);
            else
              throw new ConfigurationException("Can't find handler name:'" +
                                               handler.getQName() + "' type:'"+
                                               handler.getType() +
                                               "' in the registry");
View Full Code Here

     * @throws ConfigurationException XXX
     */
    public Handler makeNewInstance(EngineConfiguration registry)
        throws ConfigurationException
    {
        Chain         c        = new org.apache.axis.SimpleChain();
       
        for (int n = 0; n < handlers.size(); n++) {
            WSDDHandler handler = (WSDDHandler)handlers.get(n);
            c.addHandler(handler.getInstance(registry));
        }
       
        return c;
    }
View Full Code Here

TOP

Related Classes of org.apache.axis.Chain

Copyright © 2018 www.massapicom. 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.