public class HttpHeaderParser extends Object
| Constructor and Description |
|---|
HttpHeaderParser(String pHeader)
Ctor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getField(int pIndex)
Returns the header field at a given index
|
int |
getIntValue(String pName,
int pDefault)
Returns the value of a numeric header field for a given name specifying a
default.
|
String |
getValue(int pIndex)
Returns the value of a header field at a given index
|
String |
getValue(String pName)
Returns the value of a header field for a given name
|
String |
getValue(String pName,
String pDefault)
Returns the value of a header field for a given name specifying a
default.
|
String |
toString() |
public HttpHeaderParser(String pHeader)
pHeader - The header blockpublic String getField(int pIndex)
pIndex - The indexpublic String getValue(int pIndex)
pIndex - public String getValue(String pName)
pName - The namepublic String getValue(String pName, String pDefault)
pName - The name of the header fieldpDefault - The value returned if no field of the given name existspublic int getIntValue(String pName, int pDefault)
pName - The name of the header fieldpDefault - The value returned if no field of the given name existsCopyright © 2005, 2012 IBM Corporation. All Rights Reserved.