public class CommonsHttpClientRequest extends Object implements Request
Request for commons-httpclient.CommonsHttpClientRequester| Constructor and Description |
|---|
CommonsHttpClientRequest(org.apache.commons.httpclient.HttpClient httpClient,
org.apache.commons.httpclient.methods.PostMethod method) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkStatusCode(org.apache.commons.httpclient.methods.PostMethod method) |
void |
commitRequest()
Commits a request.
|
InputStream |
getInputStream()
Returns
InputStream from which user may get response data. |
OutputStream |
getOutputStream()
Returns
OutputStream to which user may send request data. |
void |
releaseRequest()
Releases resources claimed by request (closes connections, etc.).
|
public CommonsHttpClientRequest(org.apache.commons.httpclient.HttpClient httpClient,
org.apache.commons.httpclient.methods.PostMethod method)
public OutputStream getOutputStream() throws IOException
RequestOutputStream to which user may send request data.getOutputStream in interface RequestIOException - if i/o error occurspublic void commitRequest()
throws IOException
RequestcommitRequest in interface RequestIOException - if i/o error occursprotected void checkStatusCode(org.apache.commons.httpclient.methods.PostMethod method)
throws IOException
IOExceptionpublic InputStream getInputStream() throws IOException
RequestInputStream from which user may get response data.getInputStream in interface RequestIOException - if i/o error occurspublic void releaseRequest()
RequestreleaseRequest in interface RequestCopyright © 2015. All Rights Reserved.