Gets a primitive boolean context property.

@param exchange the exchange
@param message the message
@param name the name
@return the property
495067
protected boolean isBoolean(Exchange exchange, Message message, String name) {
        Boolean b = getBoolean(exchange, message, name);
        return b != null && b.booleanValue();
    }
1299281
public static boolean getBooleanValue(Properties prop, String name, boolean defaultValue) {
		String strProp = prop.getProperty(name, Boolean.toString(defaultValue));
		return Boolean.valueOf(strProp);
	}
402122
public String getProperty(final String name) {
        String property = null;
        if (customProperties != null) {
            property = customProperties.getProperty(name);
        }

        if (property == null) {
            property = SSLConfigManager.getInstance().getGlobalProperty(name);
        }

        return property;
    }
290887
public B message(String messageName) {
    Message message = findMessageForName(messageName);
    return message(message);
  }
78570
public void expectValue(String name, String message) {
        String value = Optional.ofNullable(get(name)).orElse("");

        if (StringUtils.isBlank(StringUtils.trimToNull(value))) {
            addError(name, Optional.ofNullable(message).orElse(messages.get(Validation.REQUIRED_KEY.name(), name)));
        }
    }
838731
public Object getProperty(String name) {
		if (!StringUtils.isBlank(name)) {
			return getProperties().get(name);
		}
		return null;
	}
228372
public static boolean getBooleanProperty(@Nonnull LogManager manager, @Nullable String name, boolean defaultValue) {
        if (name == null) {
            return defaultValue;
        }
        String val = manager.getProperty(name);
        if (val == null) {
            return defaultValue;
        }
        val = val.toLowerCase();
        if (val.equals("true") || val.equals("1")) {
            return true;
        } else if (val.equals("false") || val.equals("0")) {
            return false;
        }
        return defaultValue;
    }
1175694
def get_exchange(connection, name, create=False):
    
    exchange = Exchange(name, type="topic", passive=not create)

    # bind the exchange to our connection so operations can be performed on it
    bound_exchange = exchange(connection)

    # ensure the exchange exists.  Throw an error if it was created with
    # passive=True and it doesn't exist.
    bound_exchange.declare()

    return bound_exchange
1158650
protected String getString(Exchange exchange, Message message, String name) {
        Object value = getObject(exchange, message, name);
        if (value instanceof String) {
            return (String)value;
        } else if (value != null) {
            return String.valueOf(value);
        }
        return null;
    }
475313
@Deprecated
    public JsEngineComponent getMessageProcessor(String name) {

        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
            SibTr.entry(tc, "getMessageProcessor", this);
            SibTr.exit(tc, "getMessageProcessor", _messageProcessor);
        }

        return _messageProcessor;
    }
807137
public static String getProperty(String name) {
        return System.getProperty(name, System.getenv(name));
    }
1234400
public boolean getAsBoolean(final String name, final boolean defaultValue) {
        return AtsdUtil.getPropertyBoolValue(fullName(name), clientProperties, defaultValue);
    }
908017
private String getCacheKey(HttpServerExchange exchange) {
        String host = null;

        HeaderMap headerMap = exchange.getRequestHeaders();
        if (headerMap != null) {
            HeaderValues headerValues = headerMap.get(Header.X_FORWARDED_FOR.toHttpString());
            if (headerValues != null) {
                host = headerValues.element();
            }
        }
        
        if (StringUtils.isBlank(host)) {
            InetSocketAddress inetSocketAddress = exchange.getSourceAddress();
            if (inetSocketAddress != null) {
                host = inetSocketAddress.getHostString();
            }
        }
        
        if (StringUtils.isNotBlank(host)) {
            host = host.toLowerCase(Locale.ENGLISH);
        }
        
        String url = exchange.getRequestURL();
        if (StringUtils.isNotBlank(url)) {
            url = url.toLowerCase(Locale.ENGLISH);
        }
        
        return url + host;
    }
1202190
public String getEffectiveProperty(CmsClientSitemapEntry entry, String name) {

        CmsClientProperty prop = getEffectivePropertyObject(entry, name);
        if (prop == null) {
            return null;
        }
        return prop.getEffectiveValue();
    }
1018839
public Boolean getBoolean(Map<String, Object> data, String name) {
    return get(data, name, Boolean.class);
  }
1106575
public String getHeader(String name) {

		String nameToSearch = getCorrectHeaderName(name);
		String value = null;
		if (this.message.getHeader(nameToSearch) != null) {
			value = ((SIPHeader) this.message.getHeader(nameToSearch))
					.getValue();
		}
		if(logger.isDebugEnabled()) {
			logger.debug("getHeader "+ name+ ", value="+ value	);
		}
		return value;
	}
68963
def get_event_exchange(service_name):
    
    exchange_name = "{}.events".format(service_name)
    exchange = Exchange(
        exchange_name, type='topic', durable=True, delivery_mode=PERSISTENT
    )

    return exchange