Class ODataHeadersImpl
java.lang.Object
org.apache.olingo.client.core.communication.header.ODataHeadersImpl
- All Implemented Interfaces:
ODataHeaders
-
Constructor Summary
Constructors -
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).
-
Constructor Details
-
ODataHeadersImpl
public ODataHeadersImpl()
-
-
Method Details
-
setHeader
Description copied from interface:ODataHeadersAdd the specified (custom) header (header name is case-insensitive).- Specified by:
setHeaderin interfaceODataHeaders- Parameters:
name- header key.value- header value.- Returns:
- the current updated header instance.
-
getHeader
Description copied from interface:ODataHeadersGets the value of the header identified by the given name.
Please note that header name is case-insensitive.- Specified by:
getHeaderin interfaceODataHeaders- Parameters:
name- name of the header to be retrieved.- Returns:
- header value.
-
removeHeader
Description copied from interface:ODataHeadersRemoves the header identified by the given name.
Please note that header name is case-insensitive.- Specified by:
removeHeaderin interfaceODataHeaders- Parameters:
name- name of the header to be retrieved.- Returns:
- header name (if found).
-
getHeaderNames
Description copied from interface:ODataHeadersGets header names.
Please note that header name is case-insensitive.- Specified by:
getHeaderNamesin interfaceODataHeaders- Returns:
- header names.
-