|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.limegroup.gnutella.http.HTTPUtils
This class supplies general facilities for handling HTTP, such as writing headers, extracting header values, etc..
Method Summary | |
static java.lang.String |
extractHeaderValue(java.lang.String header)
Parses out the header value from the HTTP header string. |
static void |
writeHeader(HTTPHeaderName name,
HTTPHeaderValue value,
java.io.OutputStream os)
Writes an single http header to the specified OutputStream instance, with the specified header name and the specified header value. |
static void |
writeHeader(HTTPHeaderName name,
HTTPHeaderValue value,
java.io.Writer out)
Writes an single http header to the specified OutputStream instance, with the specified header name and the specified header value. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static void writeHeader(HTTPHeaderName name, HTTPHeaderValue value, java.io.OutputStream os) throws java.io.IOException
name
- the HTTPHeaderName instance containing the
header name to write to the streamos
- the OutputStream instance to write to
java.io.IOException
public static void writeHeader(HTTPHeaderName name, HTTPHeaderValue value, java.io.Writer out) throws java.io.IOException
name
- the HTTPHeaderName instance containing the
header name to write to the streamout
- the Writer instance to write to
java.io.IOException
public static java.lang.String extractHeaderValue(java.lang.String header)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |