com.noelios.restlet.http
Class HttpClientHelper
java.lang.Object
org.restlet.util.Helper<T>
com.noelios.restlet.ConnectorHelper<Client>
com.noelios.restlet.ClientHelper
com.noelios.restlet.http.HttpClientHelper
- Direct Known Subclasses:
- StreamClientHelper
public abstract class HttpClientHelper
- extends ClientHelper
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. |
- Author:
- Jerome Louvel
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HttpClientHelper
public HttpClientHelper(Client client)
- Constructor.
- Parameters:
client
- The client to help.
create
public abstract HttpClientCall create(Request request)
- Creates a low-level HTTP client call from a high-level request.
- Parameters:
request
- The high-level request.
- Returns:
- A low-level HTTP client call.
getConverter
public HttpClientConverter getConverter()
throws java.lang.Exception
- Returns the converter from uniform calls to HTTP calls.
- Returns:
- the converter from uniform calls to HTTP calls.
- Throws:
java.lang.Exception
handle
public void handle(Request request,
Response response)
- Overrides:
handle
in class Helper<Client>
setConverter
public void setConverter(HttpClientConverter converter)
- Sets the converter from uniform calls to HTTP calls.
- Parameters:
converter
- The converter to set.
Copyright © 2005-2008 Noelios Technologies.