public class CorsUtil extends Object
| Constructor and Description |
|---|
CorsUtil() |
| Modifier and Type | Method and Description |
|---|---|
static String |
formatCanonical(String name)
Applies a
Aaa-Bbb-Ccc format to a header name. |
static String |
join(Collection<String> strings) |
static String |
join(Collection<String> strings,
String separator) |
static String[] |
parseMultipleHeaderValues(String headerValue)
Parses a header value consisting of zero or more space / comma / space + comma separated strings.
|
public static String[] parseMultipleHeaderValues(String headerValue)
headerValue - The header value, may be null.null.public static String formatCanonical(String name)
Aaa-Bbb-Ccc format to a header name.name - The header name to format, must not be an empty string or null.IllegalArgumentException - On a empty or invalid header name.public static String join(Collection<String> strings)
public static String join(Collection<String> strings, String separator)
Copyright © 2024. All rights reserved.