public class Header extends java.lang.Object implements Streamable, java.io.Serializable
Constructor and Description |
---|
Header()
Constructs the Header.
|
Modifier and Type | Method and Description |
---|---|
void |
append(java.lang.String key,
java.lang.String value)
Append the value to the header with the specified key.
|
java.lang.Object |
clone() |
int |
count() |
java.lang.String |
get(java.lang.String key)
Get the header with the specified key.
|
java.util.Map<java.lang.String,java.lang.String> |
getHeader() |
java.io.InputStream |
getInputStream() |
java.util.Enumeration<java.lang.String> |
getKeys()
Gets the keys that are stored in the header.
|
int |
length() |
void |
merge(Header arg)
Merge the given header with this header.
|
void |
set(java.lang.String key,
java.lang.Object value)
Set the header with the specified key.
|
void |
setHeader(java.util.Map<java.lang.String,java.lang.String> header) |
java.lang.String |
toString() |
public void set(java.lang.String key, java.lang.Object value)
key
- value
- public void append(java.lang.String key, java.lang.String value)
key
- value
- public java.lang.String get(java.lang.String key)
key
- public int length()
public java.lang.Object clone()
clone
in class java.lang.Object
Object.clone()
public int count()
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public void merge(Header arg)
arg
- public java.io.InputStream getInputStream()
getInputStream
in interface Streamable
Streamable.getInputStream()
public java.util.Enumeration<java.lang.String> getKeys()
public java.util.Map<java.lang.String,java.lang.String> getHeader()
public void setHeader(java.util.Map<java.lang.String,java.lang.String> header)
header
- The header to set.Copyright © 2021. All Rights Reserved.