Package org.apache.axis2.description

Examples of org.apache.axis2.description.AxisService.disengageModule()


        options.setAction(inMessage.getWSAAction());
        options.setSoapVersionURI(env.getNamespace().getNamespaceURI());
        options.setProperty(HTTPConstants.CHUNKED, Boolean.FALSE);
        options.setTimeOutInMilliSeconds(1000*60*10);
        client.setOptions(options);
        client.disengageModule(Constants.MODULE_ADDRESSING);
        int i = inMessage.getAxisOperation().getAxisSpecificMEPConstant();

        MessageContext outMsgContext = null;
        if (i == WSDLConstants.MEP_CONSTANT_IN_OUT) {
            outMsgContext = MessageContextBuilder.createOutMessageContext(inMessage);
View Full Code Here


                if (rampartModule == null) {
                    throw new ModuleMgtException(ModuleMgtException.WARNING, ModuleMgtMessageKeys.RAHAS_RAMPART_NOT_FOUND);
                }
                if (!operation.isEngaged(rampartModule)) {
                    pf.getOperationPM().engageModuleForOperation(rampartModule, operation);
                    operation.disengageModule(rampartModule);
                    operation.engageModule(rampartModule);
                }
            }

            pf.getOperationPM().engageModuleForOperation(module, operation);
View Full Code Here

                    operation.engageModule(rampartModule);
                }
            }

            pf.getOperationPM().engageModuleForOperation(module, operation);
            operation.disengageModule(module);
            operation.engageModule(module);

        } catch (Exception e) {
            String msg = "Error occured while engaging the module " + moduleId + " to "
                    + operationName;
View Full Code Here

                }
            }

            try {
                pf.getOperationPM().disengageModuleForOperation(module, operation);
                operation.disengageModule(module);

            } catch (Exception e) {
                String msg = "Error occured while disengaging the module " + moduleId
                        + " from operation " + operationName;
                log.error(msg, e);
View Full Code Here

                // disengage at registry
                registry.removeAssociation(operationPath, getModuleResourcePath(module),
                        RegistryResources.Associations.ENGAGED_MODULES);

                // disengage at Axis
                operation.disengageModule(module);

            } catch (RegistryException e) {
                log.error("Error occured while removing assertion from registry", e);
                throw new ThrottleComponentException("errorDisablingAtRegistry");
            }
View Full Code Here

        config.engageModule(module.getName());
        assertEquals(2, phase.getHandlerCount());
        assertEquals(1, userPhase.getHandlerCount());

        operation.disengageModule(module);
        assertEquals(2, phase.getHandlerCount());
        assertEquals(0, userPhase.getHandlerCount());
    }

    public void testServiceEngageServiceDisengage() throws AxisFault {
View Full Code Here

        service.engageModule(module);
        assertEquals(2, phase.getHandlerCount());
        assertEquals(1, userPhase.getHandlerCount());

        operation.disengageModule(module);
        assertEquals(2, phase.getHandlerCount());
        assertEquals(0, userPhase.getHandlerCount());
    }

    public void testOperationEngageOperationDisengage() throws AxisFault {
View Full Code Here

        assertNotNull(userPhase);
        assertEquals(0, userPhase.getHandlerCount());
        operation.engageModule(module);
        assertEquals(2, phase.getHandlerCount());
        assertEquals(1, userPhase.getHandlerCount());
        operation.disengageModule(module);
        assertEquals(0, phase.getHandlerCount());
        assertEquals(0, userPhase.getHandlerCount());
    }

View Full Code Here

                req.getSession().setAttribute("status", "Can not disengage module " + moduleName +
                        ". This module is engaged at a higher level.");
            } else {
                String opName = req.getParameter("operation");
                AxisOperation op = service.getOperation(new QName(opName));
                op.disengageModule(module);
                req.getSession()
                        .setAttribute("status", "Module " + moduleName + " was disengaged from " +
                                "operation " + opName + " in service " + serviceName + ".");
            }
        } else {
View Full Code Here

        assertNotNull(userPhase);
        assertEquals(0, userPhase.getHandlerCount());
        er.engageModule(module.getName());
        assertEquals(predisptah.getHandlerCount(), 2);
        assertEquals(1, userPhase.getHandlerCount());
        operation.disEngageModule(module);
        assertEquals(predisptah.getHandlerCount(), 2);
        assertEquals(0, userPhase.getHandlerCount());
    }

    public void testServiceEnageServiceDisengag() throws AxisFault {
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.