|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.limegroup.gnutella.http.HTTPRequestMethod
public abstract class HTTPRequestMethod
Type-safe enum for HTTP request methods, as specified in RFC 2616. The only required methods for HTTP 1.1 compliance are GET and HEAD.
Field Summary | |
---|---|
static HTTPRequestMethod |
GET
Constant for the "GET" request method. |
static HTTPRequestMethod |
HEAD
Constant for the "HEAD" request method. |
Method Summary | |
---|---|
java.lang.String |
toString()
|
abstract void |
writeHttpResponse(HTTPMessage response,
java.io.OutputStream os)
Abstract method for writing the HTTP response based on the HTTP request method. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final HTTPRequestMethod GET
public static final HTTPRequestMethod HEAD
Method Detail |
---|
public abstract void writeHttpResponse(HTTPMessage response, java.io.OutputStream os) throws java.io.IOException
response
- the HTTPMessage instance that handles
writing the actual messageos
- the OutputStream to write to
IOException
- if there was an IO error writing
the response
NullPointerException
- if either the response
or the os arguments are null
java.io.IOException
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |