Interface MutableOptionalHeaderHolder
- All Superinterfaces:
OptionalHeaderHolder
A
MutableOptionalHeaderHolder is a OptionalHeaderHolder
whose header can be set and removed programmatically.- Author:
- Silvan Wyss
-
Method Summary
Modifier and TypeMethodDescriptionvoidRemoves the header of the currentMutableOptionalHeaderHolder.voidSets the header of the currentMutableOptionalHeaderHolder.Methods inherited from interface OptionalHeaderHolder
getHeader, getHeaderOrEmptyString, getOptionalHeader, hasHeader, hasHeader
-
Method Details
-
removeHeader
void removeHeader()Removes the header of the currentMutableOptionalHeaderHolder. -
setHeader
Sets the header of the currentMutableOptionalHeaderHolder.- Parameters:
header-- Throws:
RuntimeException- if the given header is null or blank.
-