/** * Add the given protocol. * * @param protocolName the name of the protocol to add * @return a new selector which includes the new rule */ public ProtocolSelector add(final String protocolName) { return add(Protocol.forName(protocolName)); }
/** * Parse an XML element of type {@code names} which yields a protocol selector from an XML reader. * * @param reader the XML stream reader * @return the parsed protocol selector * @throws ConfigXMLParseException if the resource failed to be parsed */ static ProtocolSelector parseProtocolSelectorNamesType(ConfigurationXMLStreamReader reader) throws ConfigXMLParseException { ProtocolSelector selector = ProtocolSelector.empty(); for (String name : parseNamesType(reader)) { selector = selector.add(name); } return selector; }
/** * Add the given protocol. * * @param protocolName the name of the protocol to add * @return a new selector which includes the new rule */ public ProtocolSelector add(final String protocolName) { return add(Protocol.forName(protocolName)); }
/** * Add the given protocol. * * @param protocolName the name of the protocol to add * @return a new selector which includes the new rule */ public ProtocolSelector add(final String protocolName) { return add(Protocol.forName(protocolName)); }
/** * Add the given protocol. * * @param protocolName the name of the protocol to add * @return a new selector which includes the new rule */ public ProtocolSelector add(final String protocolName) { return add(Protocol.forName(protocolName)); }
/** * Parse an XML element of type {@code names} which yields a protocol selector from an XML reader. * * @param reader the XML stream reader * @return the parsed protocol selector * @throws ConfigXMLParseException if the resource failed to be parsed */ static ProtocolSelector parseProtocolSelectorNamesType(ConfigurationXMLStreamReader reader) throws ConfigXMLParseException { ProtocolSelector selector = ProtocolSelector.empty(); for (String name : parseNamesType(reader)) { selector = selector.add(name); } return selector; }
/** * Parse an XML element of type {@code names} which yields a protocol selector from an XML reader. * * @param reader the XML stream reader * @return the parsed protocol selector * @throws ConfigXMLParseException if the resource failed to be parsed */ static ProtocolSelector parseProtocolSelectorNamesType(ConfigurationXMLStreamReader reader) throws ConfigXMLParseException { ProtocolSelector selector = ProtocolSelector.empty(); for (String name : parseNamesType(reader)) { selector = selector.add(name); } return selector; }
/** * Parse an XML element of type {@code names} which yields a protocol selector from an XML reader. * * @param reader the XML stream reader * @return the parsed protocol selector * @throws ConfigXMLParseException if the resource failed to be parsed */ static ProtocolSelector parseProtocolSelectorNamesType(ConfigurationXMLStreamReader reader) throws ConfigXMLParseException { ProtocolSelector selector = ProtocolSelector.empty(); for (String name : parseNamesType(reader)) { selector = selector.add(name); } return selector; }
list.add(forName); builder.setProtocolSelector(ProtocolSelector.empty().add( EnumSet.copyOf(list) ));
list.add(forName); builder.setProtocolSelector(ProtocolSelector.empty().add(EnumSet.copyOf(list)));