org.sblim.cimclient.internal.http
public class HttpHeader extends Object
Nested Class Summary | |
---|---|
static class | HttpHeader.HeaderEntry
Class HeaderEntry represents a single header field
|
Constructor Summary | |
---|---|
HttpHeader()
Ctor. | |
HttpHeader(InputStream pReader)
Ctor. |
Method Summary | |
---|---|
void | addField(String pName, String pValue)
Adds a header field
|
void | clear()
Clears all header fields |
static String | encode(byte[] pData)
Encodes raw data
|
static String | encode(byte[] pData, String pEnc)
Encodes raw data for a given character set
|
static String | encode(String pData, String pSourceEnc, String pTargetEnc)
Encodes a given string for a given character set
|
void | examineTrailer()
Throws a TrailerException if it contains recognized CIM errors in http
trailer entries.
|
String | getField(String pName)
Returns a field from the header
|
Iterator<Entry<HttpHeader.HeaderEntry,String>> | iterator()
Return an iterator over the header fields
|
static HttpHeader | parse(String pLine)
Parses a line from a header block
|
void | removeField(String pName)
Removes a field from the header
|
void | write(ASCIIPrintStream pWriter)
Writes a header block to a stream
|
Parameters: pReader The input stream
Throws: IOException
Parameters: pName The name of the header field pValue The value
Parameters: pData The raw data
Returns: The encoded data
Parameters: pData The raw data pEnc The character set
Returns: The encoded data
Throws: UnsupportedEncodingException
Parameters: pData The source string pSourceEnc The source character set pTargetEnc The target character set
Returns: The encoded string
Throws: UnsupportedEncodingException
Throws: TrailerException
Parameters: pName The name of the field
Returns: The value
Returns: The iterator
Parameters: pLine The line
Returns: The http header
Parameters: pName The name of the field
Parameters: pWriter The stream