|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface BaseHttpClient
BaseHttpClient provides a simple interface for making and receiving HTTP requests
to the server.
Instances are obtained via the WebserviceHttpClientFactory
.
Method Summary | |
---|---|
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. |
Methods inherited from interface com.dtolabs.client.utils.ServerResponse |
---|
getResponseBody, getResultContentType, getResultStream |
Method Detail |
---|
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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |