|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.http.client.SimpleClientHttpRequestFactory
public class SimpleClientHttpRequestFactory
ClientHttpRequestFactory implementation that uses standard J2SE facilities.
HttpURLConnection,
CommonsClientHttpRequestFactory| Constructor Summary | |
|---|---|
SimpleClientHttpRequestFactory()
|
|
| Method Summary | |
|---|---|
ClientHttpRequest |
createRequest(URI uri,
HttpMethod httpMethod)
Create a new ClientHttpRequest for the specified URI and HTTP method. |
protected void |
prepareConnection(HttpURLConnection connection,
String httpMethod)
Template method for preparing the given HttpURLConnection. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleClientHttpRequestFactory()
| Method Detail |
|---|
public ClientHttpRequest createRequest(URI uri,
HttpMethod httpMethod)
throws IOException
ClientHttpRequestFactoryClientHttpRequest for the specified URI and HTTP method.
The returned request can be written to, and then executed by calling
ClientHttpRequest.execute().
createRequest in interface ClientHttpRequestFactoryuri - the URI to create a request forhttpMethod - the HTTP method to execute
IOException - in case of I/O errors
protected void prepareConnection(HttpURLConnection connection,
String httpMethod)
throws IOException
HttpURLConnection. The default implementation prepares the connection for input and output, and sets the HTTP method.
connection - the connection to preparehttpMethod - the HTTP request method (GET, POST, etc.)
IOException - in case of I/O errors
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||