|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ClientRequestDirector
A client-side request director.
The director decides which steps are necessary to execute a request.
It establishes connections and optionally processes redirects and
authentication challenges. The director may therefore generate and
send a sequence of requests in order to execute one initial request.
Note:
It is most likely that implementations of this interface will
allocate connections, and return responses that depend on those
connections for reading the response entity. Such connections
MUST be released, but that is out of the scope of a request director.
The getConnection
provides access to the
connection that must be released when the response is handled.
This interface and it's implementations replace the
HttpMethodDirector
in HttpClient 3.
Method Summary | |
---|---|
org.apache.http.HttpResponse |
execute(RoutedRequest roureq,
org.apache.http.protocol.HttpContext context)
Executes a request. |
ManagedClientConnection |
getConnection()
Obtains the connection to which the response is tied. |
Method Detail |
---|
org.apache.http.HttpResponse execute(RoutedRequest roureq, org.apache.http.protocol.HttpContext context) throws org.apache.http.HttpException, java.io.IOException
HttpMethodDirector
in HttpClient 3.
roureq
- the route and request to executecontext
- the context for executing the request
org.apache.http.HttpException
- in case of a problem
java.io.IOException
- in case of an IO problemManagedClientConnection getConnection()
execute
is tied, or
null
if there is none
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |