Package org.apache.axis2.engine

Examples of org.apache.axis2.engine.AxisConfiguration.engageModule()


     */
    public void engageModule(QName name) throws AxisFault {
        AxisConfiguration axisConf = serviceContext.getConfigurationContext().getAxisConfiguration();
        //if it is already engeged do not engege it agaien
        if (!axisConf.isEngaged(name)) {
            axisConf.engageModule(name);
        }
    }

    private SOAPFactory getCorrectSOAPFactory(MessageContext msgCtx) {
        String soapNSURI = msgCtx.getEnvelope().getNamespace().getName();
View Full Code Here


        Utils.calculateDefaultModuleVersion(axiConfiguration.getModules(), axiConfiguration);
        assertEquals(module1, axiConfiguration.getDefaultModule("Module1"));
        assertEquals(module3, axiConfiguration.getDefaultModule("Module2"));
        assertEquals(module5, axiConfiguration.getDefaultModule("testModule"));
        axiConfiguration.engageModule(new QName("Module2"));
        axiConfiguration.engageModule(new QName("Module1"));
        axiConfiguration.engageModule("testModule", "1.93");

        Iterator engageModules = axiConfiguration.getEngagedModules().iterator();
        boolean found1 = false;
View Full Code Here

        Utils.calculateDefaultModuleVersion(axiConfiguration.getModules(), axiConfiguration);
        assertEquals(module1, axiConfiguration.getDefaultModule("Module1"));
        assertEquals(module3, axiConfiguration.getDefaultModule("Module2"));
        assertEquals(module5, axiConfiguration.getDefaultModule("testModule"));
        axiConfiguration.engageModule(new QName("Module2"));
        axiConfiguration.engageModule(new QName("Module1"));
        axiConfiguration.engageModule("testModule", "1.93");

        Iterator engageModules = axiConfiguration.getEngagedModules().iterator();
        boolean found1 = false;
        boolean found2 = false;
View Full Code Here

        assertEquals(module1, axiConfiguration.getDefaultModule("Module1"));
        assertEquals(module3, axiConfiguration.getDefaultModule("Module2"));
        assertEquals(module5, axiConfiguration.getDefaultModule("testModule"));
        axiConfiguration.engageModule(new QName("Module2"));
        axiConfiguration.engageModule(new QName("Module1"));
        axiConfiguration.engageModule("testModule", "1.93");

        Iterator engageModules = axiConfiguration.getEngagedModules().iterator();
        boolean found1 = false;
        boolean found2 = false;
        boolean found3 = false;
View Full Code Here

   
    public ConfigurationContext getClientCfgCtx() throws Exception {
        ConfigurationContext cfgCtx =
            ConfigurationContextFactory.createConfigurationContext(new CustomAxisConfigurator());
        AxisConfiguration axisCfg = cfgCtx.getAxisConfiguration();
        axisCfg.engageModule("addressing");

        TransportInDescription trpInDesc = new TransportInDescription("udp");
        trpInDesc.setReceiver(new UDPListener());
        axisCfg.addTransportIn(trpInDesc);
       
View Full Code Here

     */
    public void engageModule(QName name) throws AxisFault {
        AxisConfiguration axisConf = serviceContext.getEngineContext().getAxisConfiguration();
        //if it is already engeged do not engege it agaien
        if (!axisConf.isEngaged(name)) {
            axisConf.engageModule(name);
        }
    }

    /**
     * @param string
View Full Code Here

      AxisEngine ae = new AxisEngine(cc);
      AxisService as = ac.getService(Constants.SECURITY_QOS);
      if (as == null)
        throw new SynapseException("cannot locate service "
                        + Constants.SECURITY_QOS);
      ac.engageModule(new QName("security"));
      AxisOperation ao = as
          .getOperation(Constants.MEDIATE_OPERATION_NAME);
      OperationContext oc = OperationContextFactory
          .createOperationContext(ao.getAxisSpecifMEPConstant(), ao);
      ao.registerOperationContext(mc, oc);
View Full Code Here

        Utils.calculateDefaultModuleVersion(axiConfiguration.getModules(), axiConfiguration);
        assertEquals(module1, axiConfiguration.getDefaultModule("Module1"));
        assertEquals(module3, axiConfiguration.getDefaultModule("Module2"));
        assertEquals(module5, axiConfiguration.getDefaultModule("testModule"));
        axiConfiguration.engageModule("Module2");
        axiConfiguration.engageModule("Module1");
        axiConfiguration.engageModule("testModule", "1.93");

        Iterator engageModules = axiConfiguration.getEngagedModules().iterator();
        boolean found1 = false;
View Full Code Here

        Utils.calculateDefaultModuleVersion(axiConfiguration.getModules(), axiConfiguration);
        assertEquals(module1, axiConfiguration.getDefaultModule("Module1"));
        assertEquals(module3, axiConfiguration.getDefaultModule("Module2"));
        assertEquals(module5, axiConfiguration.getDefaultModule("testModule"));
        axiConfiguration.engageModule("Module2");
        axiConfiguration.engageModule("Module1");
        axiConfiguration.engageModule("testModule", "1.93");

        Iterator engageModules = axiConfiguration.getEngagedModules().iterator();
        boolean found1 = false;
        boolean found2 = false;
View Full Code Here

        assertEquals(module1, axiConfiguration.getDefaultModule("Module1"));
        assertEquals(module3, axiConfiguration.getDefaultModule("Module2"));
        assertEquals(module5, axiConfiguration.getDefaultModule("testModule"));
        axiConfiguration.engageModule("Module2");
        axiConfiguration.engageModule("Module1");
        axiConfiguration.engageModule("testModule", "1.93");

        Iterator engageModules = axiConfiguration.getEngagedModules().iterator();
        boolean found1 = false;
        boolean found2 = false;
        boolean found3 = false;
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.