/** * Create a new rule which is the same as this rule, but also matches the given security domain. * * @param name the security domain name to match * @return the new rule */ public final MatchRule matchLocalSecurityDomain(String name) { return name == null ? matchProtocol(null).matchUrnName(null) : matchProtocol("domain").matchUrnName(name); }
private static MatchRule ruleFromLocation(final URI uri) { MatchRule rule = MatchRule.ALL; final String scheme = uri.getScheme(); if (scheme != null) { rule = rule.matchProtocol(scheme); } final String host = uri.getHost(); if (host != null) { rule = rule.matchHost(host); } final int port = uri.getPort(); if (port != -1) { rule = rule.matchPort(port); } final String path = uri.getPath(); if (path != null && ! path.isEmpty()) { rule = rule.matchPath(path); } if (path == null && port == -1 && host == null) { final String schemeSpecificPart = uri.getSchemeSpecificPart(); if (schemeSpecificPart != null) { rule = rule.matchUrnName(schemeSpecificPart); } } return rule; }
defaultRule = defaultRule.matchUrnName(clusterName); rule = rule.matchUrnName(nodeConfiguration.getNodeName());
clientClusterBuilder.setName(clusterName); defaultRule = defaultRule.matchProtocol("cluster"); defaultRule = defaultRule.matchUrnName(clusterName); nodeRule = nodeRule.matchUrnName(nodeName);
if (isSet(foundBits, 5)) throw reader.unexpectedElement(); foundBits = setBit(foundBits, 5); rule = rule.matchUrnName(parseNameType(reader)); break;
/** * Create a new rule which is the same as this rule, but also matches the given security domain. * * @param name the security domain name to match * @return the new rule */ public final MatchRule matchLocalSecurityDomain(String name) { return name == null ? matchProtocol(null).matchUrnName(null) : matchProtocol("domain").matchUrnName(name); }
/** * Create a new rule which is the same as this rule, but also matches the given security domain. * * @param name the security domain name to match * @return the new rule */ public final MatchRule matchLocalSecurityDomain(String name) { return name == null ? matchProtocol(null).matchUrnName(null) : matchProtocol("domain").matchUrnName(name); }
/** * Create a new rule which is the same as this rule, but also matches the given security domain. * * @param name the security domain name to match * @return the new rule */ public final MatchRule matchLocalSecurityDomain(String name) { return name == null ? matchProtocol(null).matchUrnName(null) : matchProtocol("domain").matchUrnName(name); }
private static MatchRule ruleFromLocation(final URI uri) { MatchRule rule = MatchRule.ALL; final String scheme = uri.getScheme(); if (scheme != null) { rule = rule.matchProtocol(scheme); } final String host = uri.getHost(); if (host != null) { rule = rule.matchHost(host); } final int port = uri.getPort(); if (port != -1) { rule = rule.matchPort(port); } final String path = uri.getPath(); if (path != null && ! path.isEmpty()) { rule = rule.matchPath(path); } if (path == null && port == -1 && host == null) { final String schemeSpecificPart = uri.getSchemeSpecificPart(); if (schemeSpecificPart != null) { rule = rule.matchUrnName(schemeSpecificPart); } } return rule; }
private static MatchRule ruleFromLocation(final URI uri) { MatchRule rule = MatchRule.ALL; final String scheme = uri.getScheme(); if (scheme != null) { rule = rule.matchProtocol(scheme); } final String host = uri.getHost(); if (host != null) { rule = rule.matchHost(host); } final int port = uri.getPort(); if (port != -1) { rule = rule.matchPort(port); } final String path = uri.getPath(); if (path != null && ! path.isEmpty()) { rule = rule.matchPath(path); } if (path == null && port == -1 && host == null) { final String schemeSpecificPart = uri.getSchemeSpecificPart(); if (schemeSpecificPart != null) { rule = rule.matchUrnName(schemeSpecificPart); } } return rule; }
matchRule = urn.isDefined() ? matchRule.andThen(m -> m.matchUrnName(urn.asString())) : matchRule;
defaultRule = defaultRule.matchUrnName(clusterName); rule = rule.matchUrnName(nodeConfiguration.getNodeName());
defaultRule = defaultRule.matchUrnName(clusterName); rule = rule.matchUrnName(nodeConfiguration.getNodeName());
if (isSet(foundBits, 5)) throw reader.unexpectedElement(); foundBits = setBit(foundBits, 5); rule = rule.matchUrnName(parseNameType(reader)); break;
if (isSet(foundBits, 5)) throw reader.unexpectedElement(); foundBits = setBit(foundBits, 5); rule = rule.matchUrnName(parseNameType(reader)); break;
if (isSet(foundBits, 5)) throw reader.unexpectedElement(); foundBits = setBit(foundBits, 5); rule = rule.matchUrnName(parseNameType(reader)); break;