|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.http.util.HeaderUtils
public final class HeaderUtils
A utility class for processing HTTP headers.
Method Summary | |
---|---|
static Header[] |
parseHeaders(HttpDataReceiver datareceiver)
|
static Header[] |
parseHeaders(HttpDataReceiver datareceiver,
int maxHeaderCount,
int maxLineLen)
Parses HTTP headers from the data receiver stream according to the generic format as given in Section 3.1 of RFC 822, RFC-2616 Section 4 and 19.3. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Header[] parseHeaders(HttpDataReceiver datareceiver, int maxHeaderCount, int maxLineLen) throws HttpException, java.io.IOException
datareceiver
- HTTP data receivermaxHeaderCount
- maximum number of headers allowed. If the number
of headers received from the data stream exceeds maxCount value, an
IOException will be thrown. Setting this parameter to a negative value
or zero will disable the check.maxLineLen
- maximum number of characters for a header line,
including the continuation lines
HttpException
java.io.IOException
public static Header[] parseHeaders(HttpDataReceiver datareceiver) throws HttpException, java.io.IOException
HttpException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |