Interface ODataHeaders
public interface ODataHeaders
ODataHeaders wraps OData request/response headers.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionGets the value of the header identified by the given name.Gets header names.removeHeader
(String name) Removes the header identified by the given name.Add the specified (custom) header (header name is case-insensitive).
-
Method Details
-
getHeader
Gets the value of the header identified by the given name.
Please note that header name is case-insensitive.- Parameters:
name
- name of the header to be retrieved.- Returns:
- header value.
-
getHeaderNames
Collection<String> getHeaderNames()Gets header names.
Please note that header name is case-insensitive.- Returns:
- header names.
-
setHeader
Add the specified (custom) header (header name is case-insensitive).- Parameters:
name
- header key.value
- header value.- Returns:
- the current updated header instance.
-
removeHeader
Removes the header identified by the given name.
Please note that header name is case-insensitive.- Parameters:
name
- name of the header to be retrieved.- Returns:
- header name (if found).
-