/** * Converts the supplied value to a list of strings delimited by {@link XMLConstants#LIST_DELIMITERS} and comma. * * @param value to convert to a list * * @return list of strings */ @Nonnull public static List<String> buildStringList(final String value) { return StringSupport.stringToList(value, XMLConstants.LIST_DELIMITERS + ","); }
/** * Set the optional DNS subject alt names. * * @param altNames collection of subject alt names. */ public void setDNSSubjectAltNames(@Nonnull @NonnullElements final String altNames) { final List<String> nameList = StringSupport.stringToList(altNames, " "); generator.setDNSSubjectAltNames(nameList); }
/** * Set the optional DNS subject alt names. * * @param altNames collection of subject alt names. */ public void setDNSSubjectAltNames(@Nonnull @NonnullElements final String altNames) { final List<String> nameList = StringSupport.stringToList(altNames, " "); generator.setDNSSubjectAltNames(nameList); }
/** * Set the optional URI subject alt names. * * @param subjectAltNames collection of subject alt names. */ public void setURISubjectAltNames(@Nonnull @NonnullElements final String subjectAltNames) { final List<String> nameList = StringSupport.stringToList(subjectAltNames, " "); generator.setURISubjectAltNames(nameList); }
/** * Set the optional URI subject alt names. * * @param subjectAltNames collection of subject alt names. */ public void setURISubjectAltNames(@Nonnull @NonnullElements final String subjectAltNames) { final List<String> nameList = StringSupport.stringToList(subjectAltNames, " "); generator.setURISubjectAltNames(nameList); }
/** * Gets the list value of the <code>soap11:encodingStyle</code> attribute from the given SOAP object. * * @param soapObject the SOAP object to add the attribute to * * @return the list of encoding styles, or null if not present */ @Nullable public static List<String> getSOAP11EncodingStyles(@Nonnull final XMLObject soapObject) { if (soapObject instanceof EncodingStyleBearing) { List<String> value = ((EncodingStyleBearing) soapObject).getSOAP11EncodingStyles(); if (value != null) { return value; } } if (soapObject instanceof AttributeExtensibleXMLObject) { String value = StringSupport.trimOrNull(((AttributeExtensibleXMLObject) soapObject) .getUnknownAttributes().get(EncodingStyleBearing.SOAP11_ENCODING_STYLE_ATTR_NAME)); if (value != null) { StringSupport.stringToList(value, XMLConstants.LIST_DELIMITERS); } } return null; }
/** * Gets the list value of the <code>wsse:Usage</code> attribute from the given SOAP object. * * @param soapObject the SOAP object to add the attribute to * * @return the list of usages, or null if not present */ public static List<String> getWSSEUsages(XMLObject soapObject) { if (soapObject instanceof UsageBearing) { List<String> value = ((UsageBearing)soapObject).getWSSEUsages(); if (value != null) { return value; } } if (soapObject instanceof AttributeExtensibleXMLObject) { String value = StringSupport.trimOrNull(((AttributeExtensibleXMLObject)soapObject) .getUnknownAttributes().get(UsageBearing.WSSE_USAGE_ATTR_NAME)); if (value != null) { StringSupport.stringToList(value, XMLConstants.LIST_DELIMITERS); } } return null; } }
StringSupport.stringToList( StringSupport.trimOrNull(element.getAttributeNS(null, "supportedContentTypes")), XMLConstants.LIST_DELIMITERS);