|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.http.client.support.HttpAccessor
public abstract class HttpAccessor
Base class for RestTemplate
and other HTTP accessing gateway helpers, defining common properties
such as the ClientHttpRequestFactory
to operate on.
Not intended to be used directly. See RestTemplate
.
RestTemplate
Field Summary | |
---|---|
protected Log |
logger
Logger available to subclasses. |
Constructor Summary | |
---|---|
HttpAccessor()
|
Method Summary | |
---|---|
protected ClientHttpRequest |
createRequest(URI url,
HttpMethod method)
Create a new ClientHttpRequest via this template's ClientHttpRequestFactory . |
ClientHttpRequestFactory |
getRequestFactory()
Return the request factory that this accessor uses for obtaining HttpRequests . |
void |
setRequestFactory(ClientHttpRequestFactory requestFactory)
Set the request factory that this accessor uses for obtaining HttpRequests . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final Log logger
Constructor Detail |
---|
public HttpAccessor()
Method Detail |
---|
public void setRequestFactory(ClientHttpRequestFactory requestFactory)
HttpRequests
.
public ClientHttpRequestFactory getRequestFactory()
HttpRequests
.
protected ClientHttpRequest createRequest(URI url, HttpMethod method) throws IOException
ClientHttpRequest
via this template's ClientHttpRequestFactory
.
url
- the URL to connect tomethod
- the HTTP method to exectute (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 |