|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.restlet.util.Helper
com.noelios.restlet.ConnectorHelper
com.noelios.restlet.ClientHelper
com.noelios.restlet.http.HttpClientHelper
public abstract class HttpClientHelper
Base HTTP client connector. Here is the list of parameters that are supported:
| Parameter name | Value type | Default value | Description |
|---|---|---|---|
| converter | String | com.noelios.restlet.http.HttpClientConverter | Class name of the converter of low-level HTTP calls into high level requests and responses. |
| Constructor Summary | |
|---|---|
HttpClientHelper(Client client)
Constructor. |
|
| Method Summary | |
|---|---|
abstract HttpClientCall |
create(Request request)
Creates a low-level HTTP client call from a high-level request. |
HttpClientConverter |
getConverter()
Returns the converter from uniform calls to HTTP calls. |
void |
handle(Request request,
Response response)
Handles a call. |
void |
setConverter(HttpClientConverter converter)
Sets the converter from uniform calls to HTTP calls. |
| Methods inherited from class com.noelios.restlet.ClientHelper |
|---|
getClient, getContext, getLogger, getParameters |
| Methods inherited from class com.noelios.restlet.ConnectorHelper |
|---|
createContext, getProtocols, start, stop |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HttpClientHelper(Client client)
client - The client to help.| Method Detail |
|---|
public abstract HttpClientCall create(Request request)
request - The high-level request.
public void handle(Request request,
Response response)
ConnectorHelper
handle in class ConnectorHelperrequest - The request to handle.response - The response to update.
public HttpClientConverter getConverter()
throws Exception
Exceptionpublic void setConverter(HttpClientConverter converter)
converter - The converter to set.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||