public class Header
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.util.Map<java.lang.String,java.lang.String> |
mHeaders
Map of key-value pairs of the header fields.
|
java.lang.String |
sBoundary
If this is a mail header then this field in the boundary between the body parts
|
protected java.lang.String |
sCompleteHeader
Original string that was used to generate this object
|
Constructor and Description |
---|
Header(java.lang.String sHeader)
Constructor based on the extracted header of a mail, attachment or something else similar.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getOriginalHeader()
Get the string that was used to build this object.
|
java.lang.String |
getValue(java.lang.String sKey)
Get the value for a given header key.
|
static void |
main(java.lang.String[] args)
Testing code
|
protected java.lang.String sCompleteHeader
public java.lang.String sBoundary
protected java.util.Map<java.lang.String,java.lang.String> mHeaders
public Header(java.lang.String sHeader)
sHeader
- original headerpublic java.lang.String getOriginalHeader()
public java.lang.String getValue(java.lang.String sKey)
sKey
- header keypublic static void main(java.lang.String[] args)
args
- ignored