|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RequestLine
The RequestLine
is used to represent a HTTP
request line. The methods provided for this can be used
to provide easy access to the components of a HTTP request
line. For the syntax of a HTTP request line see RFC 2616.
Method Summary | |
---|---|
int |
getMajor()
This can be used to get the major number from a HTTP version. |
java.lang.String |
getMethod()
This can be used to get the HTTP method for this request. |
int |
getMinor()
This can be used to get the major number from a HTTP version. |
java.lang.String |
getURI()
This can be used to get the URI specified for this HTTP request. |
void |
setMajor(int major)
This can be used to specify the major version for the HTTP request. |
void |
setMethod(java.lang.String method)
This is used to set the method for this HTTP request object. |
void |
setMinor(int minor)
This can be used to specify the minor version for the HTTP request. |
void |
setURI(java.lang.String uri)
This can be used to set the URI for this HTTP request. |
Method Detail |
---|
java.lang.String getURI()
setURI
.
void setURI(java.lang.String uri)
getURI
will return the String entered
which can be a full HTTP URL or a relative path URL.
uri
- the URI that this HTTP request is to usejava.lang.String getMethod()
void setMethod(java.lang.String method)
method
- the desired method for thisint getMajor()
void setMajor(int major)
major
- this is the major number desiredint getMinor()
void setMinor(int minor)
minor
- this is the minor number desired
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |