|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface HttpClient
Interface for an HTTP client. HTTP clients encapsulate a smorgasbord of objects required to execute HTTP requests while handling cookies, authentication, connection management, and other features. Thread safety of HTTP clients depends on the implementation and configuration of the specific client.
Method Summary | |
---|---|
org.apache.http.HttpResponse |
execute(HttpUriRequest request)
Executes a request using the default context . |
org.apache.http.HttpResponse |
execute(HttpUriRequest request,
org.apache.http.protocol.HttpContext context)
Executes a request using the given context. |
org.apache.http.HttpResponse |
execute(RoutedRequest roureq)
Executes a request along the given route using the default context . |
org.apache.http.HttpResponse |
execute(RoutedRequest roureq,
org.apache.http.protocol.HttpContext context)
Executes a request along the given route. |
ClientConnectionManager |
getConnectionManager()
Obtains the connection manager used by this client. |
org.apache.http.protocol.HttpContext |
getDefaultContext()
Obtains the default context used by this client populated with default attributes. |
org.apache.http.params.HttpParams |
getParams()
Obtains the parameters for this client. |
Method Detail |
---|
org.apache.http.protocol.HttpContext getDefaultContext()
org.apache.http.params.HttpParams getParams()
ClientConnectionManager getConnectionManager()
org.apache.http.HttpResponse execute(HttpUriRequest request) throws org.apache.http.HttpException, java.io.IOException, java.lang.InterruptedException
default context
.
See there for details.
request
- the request to execute
org.apache.http.HttpException
- in case of a problem
java.io.IOException
- in case of an IO problem
java.lang.InterruptedException
- in case of an interrupt
org.apache.http.HttpResponse execute(HttpUriRequest request, org.apache.http.protocol.HttpContext context) throws org.apache.http.HttpException, java.io.IOException, java.lang.InterruptedException
request
- the request to executecontext
- the context to use for the execution, or
null
to use the
default context
org.apache.http.HttpException
- in case of a problem
java.io.IOException
- in case of an IO problem
java.lang.InterruptedException
- in case of an interrupt
org.apache.http.HttpResponse execute(RoutedRequest roureq, org.apache.http.protocol.HttpContext context) throws org.apache.http.HttpException, java.io.IOException, java.lang.InterruptedException
roureq
- the request to execute along with the routecontext
- the context to use for the execution, or
null
to use the
default context
execute(HttpUriRequest,HttpContext)
for details.
org.apache.http.HttpException
- in case of a problem
java.io.IOException
- in case of an IO problem
java.lang.InterruptedException
- in case of an interrupt
org.apache.http.HttpResponse execute(RoutedRequest roureq) throws org.apache.http.HttpException, java.io.IOException, java.lang.InterruptedException
default context
.
roureq
- the request to execute along with the route
execute(HttpUriRequest,HttpContext)
for details.
org.apache.http.HttpException
- in case of a problem
java.io.IOException
- in case of an IO problem
java.lang.InterruptedException
- in case of an interrupt
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |