public interface MimeHeader
MimeEntity.| Modifier and Type | Method and Description |
|---|---|
MimeEntity |
getEntity()
Retrieves the entity that contains this header.
|
Map<String,String> |
getParameters()
Retrieves a view of the parameters of this header.
|
String |
getValue() |
void |
remove()
Removes this header from its containing entity.
|
void |
setParameter(String parameterName,
String value)
Sets a parameter of this header, leaving the value intact.
|
void |
setValue(String value)
Sets the value of this header, leaving any parameters intact.
|
void |
setValueAndParameters(String value)
Sets the value of this header, including its parameters.
|
MimeEntity getEntity()
MimeEntityString getValue()
void setValue(String value)
value - the value to setvoid setValueAndParameters(String value)
Calling this method invalidates any objects returned by getParameters().
value - the value+parameter string to setvoid setParameter(String parameterName, String value)
parameterName - the name of the parameter to setvalue - the value of the parameterMap<String,String> getParameters()
In practice, this map acts similarly to a LinkedHashMap
in that parameters will be written in the header in the order that they're added.
Map view of the parameters for this headervoid remove()
Copyright © 2019–2021 HCL. All rights reserved.