Package org.azd.abstractions
Class RequestHeaders
java.lang.Object
org.azd.abstractions.RequestHeaders
Container class to set the request headers.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidAdds the header name and value.voidadd(RequestHeaders requestHeaders) Adds a new request header object.voidadd(CustomHeader customHeader) Adds a custom header.voidclear()Clears the headers.Get the headers.booleanisEmpty()Check if the header map os empty.voidRemove the header name.voidremove(CustomHeader customHeader) Removes the custom header value.voidReplace a header value.voidreplace(CustomHeader customHeader) Replaces the custom header value with the given value.
- 
Constructor Details- 
RequestHeaderspublic RequestHeaders()
 
- 
- 
Method Details- 
addAdds a custom header.- Parameters:
- customHeader- Custom header to add- CustomHeader.
 
- 
addAdds a new request header object.- Parameters:
- requestHeaders- Request headers to add.
 
- 
removeRemoves the custom header value.- Parameters:
- customHeader- Custom header to remove.
 
- 
replaceReplaces the custom header value with the given value.- Parameters:
- customHeader- Custom header to replace.
 
- 
clearpublic void clear()Clears the headers.
- 
addAdds the header name and value.- Parameters:
- name- Header name to add.
- value- Header value to add.
 
- 
removeRemove the header name.- Parameters:
- name- Header name to remove.
 
- 
replaceReplace a header value.- Parameters:
- name- Header name.
- value- Header value to replace.
 
- 
getHeadersGet the headers.- Returns:
- Map of headers.
 
- 
isEmptypublic boolean isEmpty()Check if the header map os empty.- Returns:
- True if the map is empty.
 
 
-