rule = rule.matchPath(path); MatchRule ejbRule = rule.matchAbstractType("ejb", "jboss"); MatchRule jtaRule = rule.matchAbstractType("jta", "jboss"); final OptionMap connectOptions = connectionSpec.getConnectOptions(); authenticationConfiguration = RemotingOptions.mergeOptionsIntoAuthenticationConfiguration(connectOptions, authenticationConfiguration);
MatchRule rule = MatchRule.ALL.matchAbstractType("ejb", "jboss"); AuthenticationConfiguration config = AuthenticationConfiguration.EMPTY; final JBossEJBProperties.ClusterConfiguration configuration = entry.getValue(); MatchRule defaultRule = MatchRule.ALL.matchAbstractType("ejb", "jboss"); AuthenticationConfiguration defaultConfig = AuthenticationConfiguration.EMPTY; if (nodeConfigurations != null) { for (JBossEJBProperties.ClusterNodeConfiguration nodeConfiguration : nodeConfigurations) { MatchRule rule = MatchRule.ALL.matchAbstractType("ejb", "jboss"); AuthenticationConfiguration config = AuthenticationConfiguration.EMPTY;
private static MatchRule parseMatchAbstractType(final MatchRule rule, final ConfigurationXMLStreamReader reader) throws ConfigXMLParseException { final int attributeCount = reader.getAttributeCount(); String name = null; String authority = null; for (int i = 0; i < attributeCount; i ++) { checkAttributeNamespace(reader, i); switch (reader.getAttributeLocalName(i)) { case "name": name = reader.getAttributeValueResolved(i); break; case "authority": authority = reader.getAttributeValueResolved(i); break; default: throw reader.unexpectedAttribute(i); } } if (! reader.hasNext()) throw reader.unexpectedDocumentEnd(); if (reader.nextTag() != END_ELEMENT) throw reader.unexpectedElement(); return name == null && authority == null ? rule : rule.matchAbstractType(name, authority); }
AuthenticationContext clustersAuthenticationContext = AuthenticationContext.empty(); for (EJBClientDescriptorMetaData.ClusterConfig clusterConfig : clusterConfigs) { MatchRule defaultRule = MatchRule.ALL.matchAbstractType("ejb", "jboss"); AuthenticationConfiguration defaultAuthenticationConfiguration = AuthenticationConfiguration.EMPTY; final EJBClientCluster.Builder clientClusterBuilder = new EJBClientCluster.Builder(); MatchRule nodeRule = MatchRule.ALL.matchAbstractType("ejb", "jboss"); AuthenticationConfiguration nodeAuthenticationConfiguration = AuthenticationConfiguration.EMPTY;
MatchRule rule = MatchRule.ALL.matchAbstractType("ejb", "jboss"); AuthenticationConfiguration config = AuthenticationConfiguration.EMPTY; final JBossEJBProperties.ClusterConfiguration configuration = entry.getValue(); MatchRule defaultRule = MatchRule.ALL.matchAbstractType("ejb", "jboss"); AuthenticationConfiguration defaultConfig = AuthenticationConfiguration.EMPTY; if (nodeConfigurations != null) { for (JBossEJBProperties.ClusterNodeConfiguration nodeConfiguration : nodeConfigurations) { MatchRule rule = MatchRule.ALL.matchAbstractType("ejb", "jboss"); AuthenticationConfiguration config = AuthenticationConfiguration.EMPTY;
matchRule = abstractType != null || abstractTypeAuthority != null ? matchRule.andThen(m -> m.matchAbstractType(abstractType, abstractTypeAuthority)) : matchRule;
MatchRule rule = MatchRule.ALL.matchAbstractType("ejb", "jboss"); AuthenticationConfiguration config = AuthenticationConfiguration.EMPTY; final JBossEJBProperties.ClusterConfiguration configuration = entry.getValue(); MatchRule defaultRule = MatchRule.ALL.matchAbstractType("ejb", "jboss"); AuthenticationConfiguration defaultConfig = AuthenticationConfiguration.EMPTY; if (nodeConfigurations != null) { for (JBossEJBProperties.ClusterNodeConfiguration nodeConfiguration : nodeConfigurations) { MatchRule rule = MatchRule.ALL.matchAbstractType("ejb", "jboss"); AuthenticationConfiguration config = AuthenticationConfiguration.EMPTY;
private static MatchRule parseMatchAbstractType(final MatchRule rule, final ConfigurationXMLStreamReader reader) throws ConfigXMLParseException { final int attributeCount = reader.getAttributeCount(); String name = null; String authority = null; for (int i = 0; i < attributeCount; i ++) { checkAttributeNamespace(reader, i); switch (reader.getAttributeLocalName(i)) { case "name": name = reader.getAttributeValueResolved(i); break; case "authority": authority = reader.getAttributeValueResolved(i); break; default: throw reader.unexpectedAttribute(i); } } if (! reader.hasNext()) throw reader.unexpectedDocumentEnd(); if (reader.nextTag() != END_ELEMENT) throw reader.unexpectedElement(); return name == null && authority == null ? rule : rule.matchAbstractType(name, authority); }
private static MatchRule parseMatchAbstractType(final MatchRule rule, final ConfigurationXMLStreamReader reader) throws ConfigXMLParseException { final int attributeCount = reader.getAttributeCount(); String name = null; String authority = null; for (int i = 0; i < attributeCount; i ++) { checkAttributeNamespace(reader, i); switch (reader.getAttributeLocalName(i)) { case "name": name = reader.getAttributeValueResolved(i); break; case "authority": authority = reader.getAttributeValueResolved(i); break; default: throw reader.unexpectedAttribute(i); } } if (! reader.hasNext()) throw reader.unexpectedDocumentEnd(); if (reader.nextTag() != END_ELEMENT) throw reader.unexpectedElement(); return name == null && authority == null ? rule : rule.matchAbstractType(name, authority); }
private static MatchRule parseMatchAbstractType(final MatchRule rule, final ConfigurationXMLStreamReader reader) throws ConfigXMLParseException { final int attributeCount = reader.getAttributeCount(); String name = null; String authority = null; for (int i = 0; i < attributeCount; i ++) { checkAttributeNamespace(reader, i); switch (reader.getAttributeLocalName(i)) { case "name": name = reader.getAttributeValueResolved(i); break; case "authority": authority = reader.getAttributeValueResolved(i); break; default: throw reader.unexpectedAttribute(i); } } if (! reader.hasNext()) throw reader.unexpectedDocumentEnd(); if (reader.nextTag() != END_ELEMENT) throw reader.unexpectedElement(); return name == null && authority == null ? rule : rule.matchAbstractType(name, authority); }