public interface BaseHttpClient extends ServerResponse
WebserviceHttpClientFactory
.Modifier and Type | Method and Description |
---|---|
int |
getContentLengthRetrieved()
Return the content length retrieved
|
org.apache.commons.httpclient.HttpMethod |
getRequestMethod()
Returns the
HttpMethod used for the request. |
void |
makeRequest()
Makes the HTTP request to workbench.
|
void |
setMethodType(java.lang.String method)
Set the HTTP method.
|
void |
setRequestHeader(java.lang.String name,
java.lang.String value)
Set a Header field for the request.
|
getResponseBody, getResultContentType, getResultStream
void setRequestHeader(java.lang.String name, java.lang.String value)
void makeRequest() throws java.io.IOException, HttpClientException
java.io.IOException
HttpClientException
org.apache.commons.httpclient.HttpMethod getRequestMethod()
HttpMethod
used for the request. Will return null before makeRequest is called.int getContentLengthRetrieved()
void setMethodType(java.lang.String method)
method
- GET/POST/PUT/DELETE