if (serviceGroup != null) { Parameter blockingParam = serviceGroup.getParameter(ClusteringConstants.BLOCK_ALL_REQUESTS); if (blockingParam != null) { isBlockingServiceGroupRequests = (Boolean) blockingParam.getValue();
Parameter parameter = serviceGroup.getParameter(Constants.Configuration.ENABLE_MTOM);
if (serviceGroup != null) { Parameter blockingParam = serviceGroup.getParameter(ClusteringConstants.BLOCK_ALL_REQUESTS); if (blockingParam != null) { isBlockingServiceGroupRequests = (Boolean) blockingParam.getValue();
axisServiceGroup.getParameter(Constants.Configuration.ENABLE_MTOM); if (parameter != null) { sgMetaData.setEnableMTOM((String) parameter.getValue());
return axisServiceGroup.getParameter(key);
return axisServiceGroup.getParameter(key);
/** * Return service group details for a given service group * * @param serviceGroupName * * @return ServiceGroupMetaData * * @throws AxisFault */ public ServiceGroupMetaData listServiceGroup(String serviceGroupName) throws AxisFault { ServiceGroupMetaData sgmd = new ServiceGroupMetaData(); AxisServiceGroup serviceGroup = getAxisConfig().getServiceGroup(serviceGroupName); sgmd.setGroup_name(serviceGroup.getServiceGroupName()); Parameter parameter = serviceGroup.getParameter(Constants.Configuration.ENABLE_MTOM); if (parameter != null) { sgmd.setEnableMTOM((String) parameter.getValue()); } return sgmd; }
AxisServiceGroup axisServiceGroup = axisService.getAxisServiceGroup(); Parameter springGroupCtxLocation = axisServiceGroup .getParameter(SPRING_APPLICATION_CONTEXT_LOCATION);
AxisServiceGroup axisServiceGroup = axisService.getAxisServiceGroup(); Parameter springGroupCtxLocation = axisServiceGroup .getParameter(SPRING_APPLICATION_CONTEXT_LOCATION);
public void setServiceGroupParameter(String serviceGroupId, OMElement parameterElement) throws AxisFault { AxisServiceGroup axisServiceGroup = getAxisConfig().getServiceGroup(serviceGroupId); Parameter parameter = ParameterUtil.createParameter(parameterElement); Parameter p = axisServiceGroup.getParameter(parameter.getName()); ServiceGroupDO serviceGroupDO = pm.getServiceGroup(serviceGroupId); ServiceGroupParameterDO sgParamDO = serviceGroupDO.getParameter(parameter.getName()); if (p != null && sgParamDO != null) { // Setting a new value for a parameter declared in AxisServiceGroup if (!p.isLocked()) { axisServiceGroup.addParameter(parameter); sgParamDO.setValue(parameterElement.toString()); pm.updateEntity(sgParamDO); } } else { // If we are adding a new AxisServiceGroup param or overriding a param in the Configuration hierarchy if (p == null || !p.isLocked()) { axisServiceGroup.addParameter(parameter); sgParamDO = new ServiceGroupParameterDO(); sgParamDO.setName(parameter.getName()); sgParamDO.setValue(parameterElement.toString()); sgParamDO.setServiceGroup(serviceGroupDO); try { pm.addEntity(sgParamDO); } catch (DuplicateEntityException e) { log.error("Service Parameter already exists", e); } } } }
public void removeServiceGroupParameter(String serviceGroupId, OMElement parameterElement) throws AxisFault { AxisServiceGroup axisServiceGroup = getAxisConfig().getServiceGroup(serviceGroupId); Parameter parameter = ParameterUtil.createParameter(parameterElement); Parameter p = axisServiceGroup.getParameter(parameter.getName()); ServiceGroupDO serviceGroupDO = pm.getServiceGroup(serviceGroupId); ServiceGroupParameterDO sgParamDO = serviceGroupDO.getParameter(parameter.getName()); if (p != null && sgParamDO != null) { if (!p.isLocked()) { axisServiceGroup.removeParameter(parameter); pm.deleteEntity(sgParamDO); } } else { if (p == null || !p.isLocked()) { axisServiceGroup.removeParameter(parameter); } } }
return param; } else { param = axisServiceDesc.getParameter(key);
return param; } else { param = axisServiceDesc.getParameter(key);