Class HttpHeaderParser
java.lang.Object
org.sblim.cimclient.internal.http.HttpHeaderParser
Class HttpHeaderParser parses http headers
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetField
(int pIndex) Returns the header field at a given indexint
getIntValue
(String pName, int pDefault) Returns the value of a numeric header field for a given name specifying a default.getValue
(int pIndex) Returns the value of a header field at a given indexReturns the value of a header field for a given nameReturns the value of a header field for a given name specifying a default.toString()
-
Constructor Details
-
HttpHeaderParser
Ctor.- Parameters:
pHeader
- The header block
-
-
Method Details
-
getField
Returns the header field at a given index- Parameters:
pIndex
- The index- Returns:
- The field name
-
getValue
Returns the value of a header field at a given index- Parameters:
pIndex
-- Returns:
- The value
-
getValue
Returns the value of a header field for a given name- Parameters:
pName
- The name- Returns:
- The value
-
getValue
Returns the value of a header field for a given name specifying a default.- Parameters:
pName
- The name of the header fieldpDefault
- The value returned if no field of the given name exists- Returns:
- The value
-
getIntValue
Returns the value of a numeric header field for a given name specifying a default.- Parameters:
pName
- The name of the header fieldpDefault
- The value returned if no field of the given name exists- Returns:
- The value
-
toString
-