Package org.apache.axis2.description

Examples of org.apache.axis2.description.AxisModule.removeParameter()


                }
            }

            Parameter param = module.getParameter(GLOBALLY_ENGAGED_PARAM_NAME);
            if (param != null) {
                module.removeParameter(module.getParameter(GLOBALLY_ENGAGED_PARAM_NAME));
            }

            //disengage throttling from all the services which are not admin services
            for (Iterator serviceIter = this.axisConfig.getServices().values().iterator();
                 serviceIter.hasNext();) {
View Full Code Here


            throw new ModuleMgtException(ModuleMgtException.ERROR, ModuleMgtMessageKeys.MODULE_NOT_FOUND);
        }

       try {
            Parameter parameter = ParameterUtil.createParameter(parameterName, null);
            module.removeParameter(parameter);
            pf.getModulePM().removeModuleParameter(module, parameter);
        } catch (Exception e) {
            String msg = "Cannot persist parameter removal from module  " + module.getName();
            log.error(msg, e);
            throw new ModuleMgtException(ModuleMgtException.ERROR, ModuleMgtMessageKeys.ERROR_PARAM_REMOVE);
View Full Code Here

                }
            }

            Parameter param = module.getParameter(GLOBALLY_ENGAGED_PARAM_NAME);
            if (param != null) {
                module.removeParameter(module.getParameter(GLOBALLY_ENGAGED_PARAM_NAME));
            }

            //disengage throttling from all the services which are not admin services
            for (Iterator serviceIter = this.axisConfig.getServices().values().iterator();
                 serviceIter.hasNext();) {
View Full Code Here

            throw new AxisFault("Invalid operation : " + operationName +
                                " not available in service : " + serviceName);
        }

        Parameter parameter = ParameterUtil.createParameter(parameterName, null);
        axisOp.removeParameter(parameter);
        try {
            opm.removeOperationParameter(axisOp, parameter);
        } catch (Exception e) {
            String msg = "Cannot persist operation parameter removal. Operation " +
                         serviceName + ":" + operationName;
View Full Code Here

            if (axisEvent.getEventType() == AxisEvent.SERVICE_DEPLOY &&
                    axisService.getName().equals("ServiceAdmin")){
                AxisOperation operation = axisService.getOperation(new QName("listServiceGroups"));
                ArrayList<Parameter> params = operation.getParameters();
                for(Parameter param: params) {
                    operation.removeParameter(param);
                }
                Parameter authAction = new Parameter("AuthorizationAction",
                        "/permission/admin/manage/monitor/service");
                operation.addParameter(authAction);
            }
View Full Code Here

                    String taskName = (String) jdm.get(FunctionSchedulingJob.TASK_NAME);

                    deleteTaskDescription(taskName, configCtx);
                }

                axisService.removeParameter(new Parameter(
                        FunctionSchedulingJob.JS_FUNCTION_MAP, jsScheduledFunctionMap));

                if (log.isDebugEnabled()) {
                    log.debug("Deleted Tasks associated with the axis service : "
                            + serviceName + " from the configuration");
View Full Code Here

    public static void overrideCallbackHandler(AxisConfiguration axisConfig, String service)
            throws AxisFault {
        AxisService sts = axisConfig.getService(service);
        Parameter cbHandlerParam = sts.getParameter(WSHandlerConstants.PW_CALLBACK_REF);
        if (cbHandlerParam != null) {
            sts.removeParameter(cbHandlerParam);
            if (log.isDebugEnabled()) {
                log.debug("removedParameter");
            }
        }
View Full Code Here

                throw new AxisFault(msg, e);
            }

            Parameter param = new Parameter();
            param.setName(WSHandlerConstants.PW_CALLBACK_REF);
            service.removeParameter(param);

            Parameter param2 = new Parameter();
            param2.setName("disableREST"); // TODO Find the constant
            service.removeParameter(param2);
View Full Code Here

            param.setName(WSHandlerConstants.PW_CALLBACK_REF);
            service.removeParameter(param);

            Parameter param2 = new Parameter();
            param2.setName("disableREST"); // TODO Find the constant
            service.removeParameter(param2);

            Parameter pathParam = service.getParameter(SecurityConstants.SECURITY_POLICY_PATH);
            String policyPath = null;
            if (pathParam != null) {
                policyPath = (String) pathParam.getValue();
View Full Code Here

            Parameter pathParam = service.getParameter(SecurityConstants.SECURITY_POLICY_PATH);
            String policyPath = null;
            if (pathParam != null) {
                policyPath = (String) pathParam.getValue();
                service.removeParameter(pathParam);
            }

            // unlock transports
            Policy policy = this.loadPolicy(scenarioId, policyPath);
            if (isHttpsTransportOnly(policy)) {
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.