|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.craftforge.essential.controller.utils.HeaderUtils
public class HeaderUtils
| Constructor Summary | |
|---|---|
HeaderUtils()
|
|
| Method Summary | |
|---|---|
static String[] |
getAuthorizationPair(String[] authorizationHeaders)
Gets a username password pair from the HTTP authorization header values. |
static String |
getBasicAuthorizationHeader(String username,
String password)
Gets an HTTP basic authorization header value from a username and password. |
static String[] |
getContentTypePair(String contentTypeHeader)
Gets a content type pair, extracting the content media type and content charset from a Content-Type header. |
static Map<String,String[]> |
normalizeHeaderMap(Map<String,List<String>> inputMap)
Converts an input map holding its values as a list into an output map holding its values as an array. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HeaderUtils()
| Method Detail |
|---|
public static String getBasicAuthorizationHeader(String username,
String password)
username - The usernamepassword - The password
public static String[] getAuthorizationPair(String[] authorizationHeaders)
authorizationHeaders - HTTP authorization header values
public static String[] getContentTypePair(String contentTypeHeader)
contentTypeHeader - The Content-Type header
public static Map<String,String[]> normalizeHeaderMap(Map<String,List<String>> inputMap)
inputMap - The input map
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||