Package org.apache.axis

Examples of org.apache.axis.Chain


     * @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


    }
  
    public Handler newInstance(DeploymentRegistry registry) throws Exception {
        try {
            Handler h = super.makeNewInstance(registry);
            Chain c = (Chain)h;
            WSDDHandler[] handlers = getHandlers();
            for (int n = 0; n < handlers.length; n++) {
                c.addHandler(handlers[n].newInstance(registry));
            }
            return c;
        } catch (Exception e) {
            return null;
        }
View Full Code Here

     * Creates a new instance of this Chain
     */
    public Handler newInstance(DeploymentRegistry registry) throws Exception {
        try {
            Handler h = super.newInstance(registry);
            Chain c = (Chain)h;
            WSDDHandler[] handlers = getHandlers();
            for (int n = 0; n < handlers.length; n++) {
                c.addHandler(handlers[n].newInstance(registry));
            }
            return c;
        } catch (Exception e) {
            return null;
        }
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

    }
  
    public Handler newInstance(DeploymentRegistry registry) throws Exception {
        try {
            Handler h = super.makeNewInstance(registry);
            Chain c = (Chain)h;
            WSDDHandler[] handlers = getHandlers();
            for (int n = 0; n < handlers.length; n++) {
                c.addHandler(handlers[n].newInstance(registry));
            }
            return c;
        } catch (Exception e) {
            return null;
        }
View Full Code Here

     * Creates a new instance of this Chain
     */
    public Handler newInstance(DeploymentRegistry registry) throws Exception {
        try {
            Handler h = super.newInstance(registry);
            Chain c = (Chain)h;
            WSDDHandler[] handlers = getHandlers();
            for (int n = 0; n < handlers.length; n++) {
                c.addHandler(handlers[n].newInstance(registry));
            }
            return c;
        } catch (Exception e) {
            return null;
        }
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

     * @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.testServiceBackReference();
    }
   
    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

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.