Example usage for Java org.apache.commons.httpclient.methods OptionsMethod fields, constructors, methods, implement or subclass
The text is from its open source code.
void | addRequestHeader(String headerName, String headerValue) Adds the specified request header, NOT overwriting any previous value. |
Enumeration | getAllowedMethods() |
HttpMethodParams | getParams() Returns HttpMethodParams HTTP protocol parameters associated with this method. |
InputStream | getResponseBodyAsStream() Returns the response body of the HTTP method, if any, as an InputStream . |
String | getResponseBodyAsString() Returns the response body of the HTTP method, if any, as a String . |
Header | getResponseHeader(String headerName) Gets the response header associated with the given name. |
StatusLine | getStatusLine() Provides access to the response status line. |
boolean | hasBeenUsed() Returns true if the HTTP method has been already #execute executed , but not #recycle recycled . |
void | releaseConnection() Releases the connection being used by this HTTP method. |
void | setFollowRedirects(boolean followRedirects) Sets whether or not the HTTP method should automatically follow HTTP redirects (status code 302, etc.) |
void | setRequestHeader(String headerName, String headerValue) Set the specified request header, overwriting any previous value. |
void | setURI(URI uri) Sets the URI for this method. |