Package de.xima.fc.mdl.request
Class HeaderParameters
java.lang.Object
de.xima.fc.mdl.request.HeaderParameters
- All Implemented Interfaces:
Serializable
Represents the parameters of form HTTP request as key-value pairs. They are grouped according to their type. For each
key, there may exists multiple values. This class also provides some utility methods such as to get the first value
for a certain key.
- Author:
- XIMA MEDIA GmbH
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetHeaders
(String headerName) boolean
isHasHeader
(String headerName) void
setHeaderMap
(Map<String, List<String>> headerMap)
-
Constructor Details
-
HeaderParameters
public HeaderParameters()
-
-
Method Details
-
getHeader
- Parameters:
headerName
- The key of a header to retrieve.- Returns:
- The first header value for the given name. When no value exists for the given key, returns the empty string.
-
getHeaderMap
- Returns:
- A map with all available header parameters.
-
getHeaders
- Parameters:
headerName
- The key of a header to retrieve.- Returns:
- All header values for the given name. When no value exists for the given key, returns an empty list.
-
isHasHeader
- Parameters:
headerName
- The key of a header to retrieve.- Returns:
- Whether a header with the given name exists.
-
setHeaderMap
- Parameters:
headerMap
- A map with all available header parameters.
-