public static boolean isTrue(Object value) { return isTrue(value, false); }
public InvocationResponse invoke(MessageContext msgContext) throws AxisFault { Object flag = msgContext.getLocalProperty(IS_ADDR_INFO_ALREADY_PROCESSED); if (log.isTraceEnabled()) { log.trace("invoke: IS_ADDR_INFO_ALREADY_PROCESSED=" + flag); } if (JavaUtils.isTrueExplicitly(flag)) { // Check if the wsa:MessageID is required or not. checkMessageIDHeader(msgContext); // Check that if wsamInvocationPattern flag is in effect that the replyto and faultto are valid. if (JavaUtils.isTrue(msgContext.getProperty(ADDR_VALIDATE_INVOCATION_PATTERN), true)) { checkWSAMInvocationPattern(msgContext); } } else { // Check that if wsaddressing=required that addressing headers were found inbound checkUsingAddressing(msgContext); } return InvocationResponse.CONTINUE; }
if (JavaUtils.isTrue(msgctx.getProperty(ADDR_VALIDATE_ACTION), true)) { checkAction(msgctx);
public static boolean isTrue(Object value) { return isTrue(value, false); }
if (JavaUtils.isTrue(msgctx.getProperty(ADDR_VALIDATE_ACTION), true)) { checkAction(msgctx);
public boolean isParameterTrue(String name) { Parameter param = getParameter(name); return param != null && JavaUtils.isTrue(param.getValue()); }
public boolean isParameterTrue(String name) { Parameter param = getParameter(name); return param != null && JavaUtils.isTrue(param.getValue()); }
private void processSOAPRoleConfig(AxisConfiguration axisConfig, OMElement soaproleconfigElement) { if (soaproleconfigElement != null) { final boolean isUltimateReceiever = JavaUtils.isTrue(soaproleconfigElement.getAttributeValue(new QName(Constants.SOAP_ROLE_IS_ULTIMATE_RECEIVER_ATTRIBUTE)), true); ArrayList roles = new ArrayList(); Iterator iterator = soaproleconfigElement.getChildrenWithName(new QName(Constants.SOAP_ROLE_ELEMENT)); while (iterator.hasNext()) { OMElement roleElement = (OMElement) iterator.next(); roles.add(roleElement.getText()); } final List unmodifiableRoles = Collections.unmodifiableList(roles); try{ RolePlayer rolePlayer = new RolePlayer(){ public List getRoles() { return unmodifiableRoles; } public boolean isUltimateDestination() { return isUltimateReceiever; } }; axisConfig.addParameter("rolePlayer", rolePlayer); } catch (AxisFault e) { if (log.isTraceEnabled()) { log.trace( "processTargetResolvers: Exception thrown initialising TargetResolver: " + e.getMessage()); } } } }
private void processSOAPRoleConfig(AxisConfiguration axisConfig, OMElement soaproleconfigElement) { if (soaproleconfigElement != null) { final boolean isUltimateReceiever = JavaUtils.isTrue(soaproleconfigElement.getAttributeValue(new QName(Constants.SOAP_ROLE_IS_ULTIMATE_RECEIVER_ATTRIBUTE)), true); ArrayList roles = new ArrayList(); Iterator<OMElement> iterator = soaproleconfigElement.getChildrenWithName(new QName(Constants.SOAP_ROLE_ELEMENT)); while (iterator.hasNext()) { OMElement roleElement = iterator.next(); roles.add(roleElement.getText()); } final List unmodifiableRoles = Collections.unmodifiableList(roles); try{ RolePlayer rolePlayer = new RolePlayer(){ public List getRoles() { return unmodifiableRoles; } public boolean isUltimateDestination() { return isUltimateReceiever; } }; axisConfig.addParameter("rolePlayer", rolePlayer); } catch (AxisFault e) { if (log.isTraceEnabled()) { log.trace( "processTargetResolvers: Exception thrown initialising TargetResolver: " + e.getMessage()); } } } }
/** * This has used to test if the server is availabele and the current admins login status. * * @return boolean */ public boolean ping() { MessageContext msgCtx = MessageContext.getCurrentMessageContext(); ServiceGroupContext serviceGroupContext = msgCtx.getServiceGroupContext(); Object property = serviceGroupContext.getProperty(ServerConstants.ADMIN_LOGGED_IN); if (property == null) { return false; } else { String status = (String) property; return JavaUtils.isTrue(status); } } }
/** * Sets hotDeployment and hot update. */ protected void setDeploymentFeatures() { Parameter hotDeployment = axisConfig.getParameter(TAG_HOT_DEPLOYMENT); Parameter hotUpdate = axisConfig.getParameter(TAG_HOT_UPDATE); if (hotDeployment != null) { this.hotDeployment = JavaUtils.isTrue(hotDeployment.getValue(), true); } if (hotUpdate != null) { this.hotUpdate = JavaUtils.isTrue(hotUpdate.getValue(), true); } String serviceDirPara = (String) axisConfig.getParameterValue(DeploymentConstants.SERVICE_DIR_PATH); if (serviceDirPara != null) { servicesPath = serviceDirPara; } String moduleDirPara = (String) axisConfig.getParameterValue(DeploymentConstants.MODULE_DRI_PATH); if (moduleDirPara != null) { modulesPath = moduleDirPara; } }
if ((generateWrappedArrayTypes != null) && JavaUtils.isTrue(generateWrappedArrayTypes.getValue())){ isGenerateWrappedArrayTypes = true;
/** * Sets hotDeployment and hot update. */ protected void setDeploymentFeatures() { Parameter hotDeployment = axisConfig.getParameter(TAG_HOT_DEPLOYMENT); Parameter hotUpdate = axisConfig.getParameter(TAG_HOT_UPDATE); if (hotDeployment != null) { this.hotDeployment = JavaUtils.isTrue(hotDeployment.getValue(), true); } if (hotUpdate != null) { this.hotUpdate = JavaUtils.isTrue(hotUpdate.getValue(), true); } String serviceDirPara = (String) axisConfig.getParameterValue(DeploymentConstants.SERVICE_DIR_PATH); if (serviceDirPara != null) { servicesPath = serviceDirPara; } String moduleDirPara = (String) axisConfig.getParameterValue(DeploymentConstants.MODULE_DRI_PATH); if (moduleDirPara != null) { modulesPath = moduleDirPara; } }
if ((generateWrappedArrayTypes != null) && JavaUtils.isTrue(generateWrappedArrayTypes.getValue())){ isGenerateWrappedArrayTypes = true;
public InvocationResponse invoke(MessageContext msgContext) throws AxisFault { InvocationResponse response = InvocationResponse.CONTINUE; if (msgContext.getAxisService() == null || msgContext.getAxisOperation() == null) { boolean validateAction = JavaUtils.isTrue(msgContext.getProperty(ADDRESSING_VALIDATE_ACTION), true); msgContext.setProperty(ADDRESSING_VALIDATE_ACTION, Boolean.valueOf(false)); response = super.invoke(msgContext); if (isForBrokerEventingService(msgContext)) validateBrokerWSEventingOperation(msgContext); if (validateAction) checkAction(msgContext); msgContext.setProperty(ADDRESSING_VALIDATE_ACTION, Boolean.valueOf(validateAction)); } return response; }
public org.apache.axis2.engine.Handler.InvocationResponse invoke(MessageContext msgContext) throws AxisFault { InvocationResponse response = InvocationResponse.CONTINUE; if (msgContext.getAxisService() == null || msgContext.getAxisOperation() == null) { boolean validateAction = JavaUtils.isTrue(msgContext.getProperty(ADDRESSING_VALIDATE_ACTION), true); msgContext.setProperty(ADDRESSING_VALIDATE_ACTION, Boolean.valueOf(false)); response = super.invoke(msgContext); if (isForMessageBoxService(msgContext)) validateMsgBoxStoreOperation(msgContext); if (validateAction) checkAction(msgContext); msgContext.setProperty(ADDRESSING_VALIDATE_ACTION, Boolean.valueOf(validateAction)); } return response; }
public InvocationResponse invoke(MessageContext msgContext) throws AxisFault { InvocationResponse response = InvocationResponse.CONTINUE; if (msgContext.getAxisService() == null || msgContext.getAxisOperation() == null) { boolean validateAction = JavaUtils.isTrue(msgContext.getProperty(ADDRESSING_VALIDATE_ACTION), true); msgContext.setProperty(ADDRESSING_VALIDATE_ACTION, Boolean.valueOf(false)); response = super.invoke(msgContext); if (isForBrokerEventingService(msgContext)) validateBrokerWSEventingOperation(msgContext); if (validateAction) checkAction(msgContext); msgContext.setProperty(ADDRESSING_VALIDATE_ACTION, Boolean.valueOf(validateAction)); } return response; }
public org.apache.axis2.engine.Handler.InvocationResponse invoke(MessageContext msgContext) throws AxisFault { InvocationResponse response = InvocationResponse.CONTINUE; if (msgContext.getAxisService() == null || msgContext.getAxisOperation() == null) { boolean validateAction = JavaUtils.isTrue(msgContext.getProperty(ADDRESSING_VALIDATE_ACTION), true); msgContext.setProperty(ADDRESSING_VALIDATE_ACTION, Boolean.valueOf(false)); response = super.invoke(msgContext); if (isForMessageBoxService(msgContext)) validateMsgBoxStoreOperation(msgContext); if (validateAction) checkAction(msgContext); msgContext.setProperty(ADDRESSING_VALIDATE_ACTION, Boolean.valueOf(validateAction)); } return response; }
if (JavaUtils.isTrue(getOptions().getProperty(AUTO_OPERATION_CLEANUP), true) && !getOptions().isUseSeparateListener()) { cleanupTransport();
if (JavaUtils.isTrue(getOptions().getProperty(AUTO_OPERATION_CLEANUP), true) && !getOptions().isUseSeparateListener()) { cleanupTransport();