- All Known Subinterfaces:
HttpMessage,HttpRequest,HttpResponse
Generic contract for a message which contains headers
- Since:
- 0.12.0
-
Method Summary
Modifier and TypeMethodDescriptiondefault booleancontainsHeader(String headerName) getHeaderValue(String headerName) getHeaderValues(String headerName)
-
Method Details
-
getHeaderNames
Collection<String> getHeaderNames()- Returns:
- all headers name
-
containsHeader
- Parameters:
headerName- name of the header- Returns:
- whether the header is present in the message
-
getHeaderValue
- Parameters:
headerName- name of the header- Returns:
- first value of the header
-
getHeaderValues
- Parameters:
headerName- name of the header- Returns:
- an immutable
Collectioncontaining all the values of that headers. If not such headers exists return null, otherwise the collection of header values
-
getHeaders
- Returns:
- an immutable
MultiMapcontaining all headers
-