/** * Create an {@code SNIMatcher} which matches SNI host names that are equal to the given (ASCII) string. * * @param string the host name string (must not be {@code null}) * @return the SNI matcher (not {@code null}) * @see IDN */ public static SNIMatcher createHostNameStringSNIMatcher(String string) { Assert.checkNotNullParam("string", string); return createHostNameStringPredicateSNIMatcher(string::equals); }
/** * Create an {@code SNIMatcher} which matches SNI host name strings which end with the given suffix. * * @param suffix the suffix to match (must not be {@code null} or empty) * @return the SNI matcher (not {@code null}) */ public static SNIMatcher createHostNameSuffixSNIMatcher(String suffix) { Assert.checkNotNullParam("suffix", suffix); Assert.checkNotEmptyParam("suffix", suffix); final String finalSuffix = suffix.startsWith(".") ? suffix : "." + suffix; return createHostNameStringPredicateSNIMatcher(n -> n.endsWith(finalSuffix)); }
/** * Create an {@code SNIMatcher} which matches SNI host names that are equal to the given (ASCII) string. * * @param string the host name string (must not be {@code null}) * @return the SNI matcher (not {@code null}) * @see IDN */ public static SNIMatcher createHostNameStringSNIMatcher(String string) { Assert.checkNotNullParam("string", string); return createHostNameStringPredicateSNIMatcher(string::equals); }
/** * Create an {@code SNIMatcher} which matches SNI host names that are equal to the given (ASCII) string. * * @param string the host name string (must not be {@code null}) * @return the SNI matcher (not {@code null}) * @see IDN */ public static SNIMatcher createHostNameStringSNIMatcher(String string) { Assert.checkNotNullParam("string", string); return createHostNameStringPredicateSNIMatcher(string::equals); }
/** * Create an {@code SNIMatcher} which matches SNI host names that are equal to the given (ASCII) string. * * @param string the host name string (must not be {@code null}) * @return the SNI matcher (not {@code null}) * @see IDN */ public static SNIMatcher createHostNameStringSNIMatcher(String string) { Assert.checkNotNullParam("string", string); return createHostNameStringPredicateSNIMatcher(string::equals); }
/** * Create an {@code SNIMatcher} which matches SNI host name strings which end with the given suffix. * * @param suffix the suffix to match (must not be {@code null} or empty) * @return the SNI matcher (not {@code null}) */ public static SNIMatcher createHostNameSuffixSNIMatcher(String suffix) { Assert.checkNotNullParam("suffix", suffix); Assert.checkNotEmptyParam("suffix", suffix); final String finalSuffix = suffix.startsWith(".") ? suffix : "." + suffix; return createHostNameStringPredicateSNIMatcher(n -> n.endsWith(finalSuffix)); }
/** * Create an {@code SNIMatcher} which matches SNI host name strings which end with the given suffix. * * @param suffix the suffix to match (must not be {@code null} or empty) * @return the SNI matcher (not {@code null}) */ public static SNIMatcher createHostNameSuffixSNIMatcher(String suffix) { Assert.checkNotNullParam("suffix", suffix); Assert.checkNotEmptyParam("suffix", suffix); final String finalSuffix = suffix.startsWith(".") ? suffix : "." + suffix; return createHostNameStringPredicateSNIMatcher(n -> n.endsWith(finalSuffix)); }
/** * Create an {@code SNIMatcher} which matches SNI host name strings which end with the given suffix. * * @param suffix the suffix to match (must not be {@code null} or empty) * @return the SNI matcher (not {@code null}) */ public static SNIMatcher createHostNameSuffixSNIMatcher(String suffix) { Assert.checkNotNullParam("suffix", suffix); Assert.checkNotEmptyParam("suffix", suffix); final String finalSuffix = suffix.startsWith(".") ? suffix : "." + suffix; return createHostNameStringPredicateSNIMatcher(n -> n.endsWith(finalSuffix)); }