/** * Check if a given property is true. Will return the passed default if the property * does not exist. * * @param name name of the property to check * @param defaultVal the default value if the property doesn't exist * @return true if the property exists and is Boolean.TRUE, "true", 1, etc. */ public boolean isPropertyTrue(String name, boolean defaultVal) { return JavaUtils.isTrueExplicitly(getProperty(name), defaultVal); }
/** * Check if a given property is true. Will return the passed default if the property * does not exist. * * @param name name of the property to check * @param defaultVal the default value if the property doesn't exist * @return true if the property exists and is Boolean.TRUE, "true", 1, etc. */ public boolean isPropertyTrue(String name, boolean defaultVal) { return JavaUtils.isTrueExplicitly(getProperty(name), defaultVal); }
public GoogleAnalyticsConfig(OMElement config) { googleAnalyticsTrackingID = config.getFirstChildWithName(new QName( APIMgtUsagePublisherConstants.API_GOOGLE_ANALYTICS_TRACKING_ID)).getText(); String googleAnalyticsEnabledStr = config.getFirstChildWithName(new QName( APIMgtUsagePublisherConstants.API_GOOGLE_ANALYTICS_TRACKING_ENABLED)).getText(); enabled = googleAnalyticsEnabledStr != null && JavaUtils.isTrueExplicitly(googleAnalyticsEnabledStr); }
public GoogleAnalyticsConfig(OMElement config) { googleAnalyticsTrackingID = config .getFirstChildWithName(new QName(APIMgtUsagePublisherConstants.API_GOOGLE_ANALYTICS_TRACKING_ID)) .getText(); String googleAnalyticsEnabledStr = config.getFirstChildWithName( new QName(APIMgtUsagePublisherConstants.API_GOOGLE_ANALYTICS_TRACKING_ENABLED)).getText(); enabled = googleAnalyticsEnabledStr != null && JavaUtils.isTrueExplicitly(googleAnalyticsEnabledStr); } }
private boolean ignoreService(AxisService service) { // these are "private" services return service.getName().startsWith("__") || JavaUtils.isTrueExplicitly( service.getParameter(NhttpConstants.HIDDEN_SERVICE_PARAM_NAME)); }
public boolean isChildFirstClassLoading(){ boolean childFirstClassLoading = false; Parameter isChildFirstClassLoading = this.getParameter(Constants.Configuration.ENABLE_CHILD_FIRST_CLASS_LOADING); if (isChildFirstClassLoading != null){ childFirstClassLoading = JavaUtils.isTrueExplicitly(isChildFirstClassLoading.getValue()); } return childFirstClassLoading; }
protected boolean isDisableREST() { // axis2.xml indicated no HTTP binding? boolean disableREST = false; Parameter disableRESTParameter = axisService .getParameter(org.apache.axis2.Constants.Configuration.DISABLE_REST); if (disableRESTParameter != null && JavaUtils.isTrueExplicitly(disableRESTParameter.getValue())) { disableREST = true; } return disableREST; }
protected boolean isDisableREST() { // axis2.xml indicated no HTTP binding? boolean disableREST = false; Parameter disableRESTParameter = axisService .getParameter(org.apache.axis2.Constants.Configuration.DISABLE_REST); if (disableRESTParameter != null && JavaUtils.isTrueExplicitly(disableRESTParameter.getValue())) { disableREST = true; } return disableREST; }
protected boolean isDisableSOAP11() { boolean disableSOAP11 = false; Parameter disableSOAP11Parameter = axisService .getParameter(org.apache.axis2.Constants.Configuration.DISABLE_SOAP11); if (disableSOAP11Parameter != null && JavaUtils.isTrueExplicitly(disableSOAP11Parameter.getValue())) { disableSOAP11 = true; } return disableSOAP11; }
/** * @param clusteringAgent The ClusterManager implementation * @return true, if the cluster needs to be automatically initialized by the framework; false, * otherwise */ private static boolean shouldClusterBeInitiated(ClusteringAgent clusteringAgent) { Parameter param = clusteringAgent.getParameter(ClusteringConstants.Parameters.AVOID_INITIATION); return !(param != null && JavaUtils.isTrueExplicitly(param.getValue())); }
protected boolean isDisableSOAP11() { boolean disableSOAP11 = false; Parameter disableSOAP11Parameter = axisService .getParameter(org.apache.axis2.Constants.Configuration.DISABLE_SOAP11); if (disableSOAP11Parameter != null && JavaUtils.isTrueExplicitly(disableSOAP11Parameter.getValue())) { disableSOAP11 = true; } return disableSOAP11; }
protected boolean isDisableSOAP12() { // axis2.xml indicated no SOAP 1.2 binding? boolean disableSOAP12 = false; Parameter disableSOAP12Parameter = axisService .getParameter(org.apache.axis2.Constants.Configuration.DISABLE_SOAP12); if (disableSOAP12Parameter != null && JavaUtils.isTrueExplicitly(disableSOAP12Parameter.getValue())) { disableSOAP12 = true; } return disableSOAP12; }
private boolean isAnonymousTypesDisallowed() { boolean disallowAnonTypes = false; Parameter param = service.getParameter(Java2WSDLConstants.DISALLOW_ANON_TYPES_OPTION_LONG); if (param != null) { disallowAnonTypes = JavaUtils.isTrueExplicitly(param.getValue()); } return disallowAnonTypes; }
protected boolean isDisableSOAP12() { // axis2.xml indicated no SOAP 1.2 binding? boolean disableSOAP12 = false; Parameter disableSOAP12Parameter = axisService .getParameter(org.apache.axis2.Constants.Configuration.DISABLE_SOAP12); if (disableSOAP12Parameter != null && JavaUtils.isTrueExplicitly(disableSOAP12Parameter.getValue())) { disableSOAP12 = true; } return disableSOAP12; }
protected boolean isDisableSOAP11() { boolean disableSOAP11 = false; Parameter disableSOAP11Parameter = axisService .getParameter(org.apache.axis2.Constants.Configuration.DISABLE_SOAP11); if (disableSOAP11Parameter != null && JavaUtils.isTrueExplicitly(disableSOAP11Parameter.getValue())) { disableSOAP11 = true; } return disableSOAP11; }
private void processMTOM10Assertion(OMElement element, MTOM10Assertion mtomAssertion) { // Checking wsp:Optional attribute String value = element .getAttributeValue(Constants.Q_ELEM_OPTIONAL_ATTR); boolean isOptional = JavaUtils.isTrueExplicitly(value); mtomAssertion.setOptional(isOptional); }
protected boolean isDisableREST() { // axis2.xml indicated no HTTP binding? boolean disableREST = false; Parameter disableRESTParameter = axisService .getParameter(org.apache.axis2.Constants.Configuration.DISABLE_REST); if (disableRESTParameter != null && JavaUtils.isTrueExplicitly(disableRESTParameter.getValue())) { disableREST = true; } return disableREST; }
private boolean isAnonymousTypesDisallowed() { boolean disallowAnonTypes = false; Parameter param = service.getParameter(Java2WSDLConstants.DISALLOW_ANON_TYPES_OPTION_LONG); if (param != null) { disallowAnonTypes = JavaUtils.isTrueExplicitly(param.getValue()); } return disallowAnonTypes; }
public boolean isChildFirstClassLoading(){ boolean childFirstClassLoading = false; Parameter isChildFirstClassLoading = this.getParameter(Constants.Configuration.ENABLE_CHILD_FIRST_CLASS_LOADING); if (isChildFirstClassLoading != null){ childFirstClassLoading = JavaUtils.isTrueExplicitly(isChildFirstClassLoading.getValue()); } return childFirstClassLoading; }
protected boolean isDisableREST() { // axis2.xml indicated no HTTP binding? boolean disableREST = false; Parameter disableRESTParameter = axisService .getParameter(org.apache.axis2.Constants.Configuration.DISABLE_REST); if (disableRESTParameter != null && JavaUtils.isTrueExplicitly(disableRESTParameter.getValue())) { disableREST = true; } return disableREST; }