org.springframework.social.support
Class ClientHttpRequestFactorySelector
java.lang.Object
org.springframework.social.support.ClientHttpRequestFactorySelector
public class ClientHttpRequestFactorySelector
- extends java.lang.Object
Chooses a request factory. Picks a HttpComponentsClientRequestFactory factory if Apache HttpComponents HttpClient is in the classpath.
If not, falls back to SimpleClientHttpRequestFactory.
- Author:
- Craig Walls, Roy Clarkson
Method Summary |
static org.springframework.http.client.ClientHttpRequestFactory |
bufferRequests(org.springframework.http.client.ClientHttpRequestFactory requestFactory)
Decorates a request factory to buffer responses so that the responses may be repeatedly read. |
static org.springframework.http.client.ClientHttpRequestFactory |
getRequestFactory()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClientHttpRequestFactorySelector
public ClientHttpRequestFactorySelector()
getRequestFactory
public static org.springframework.http.client.ClientHttpRequestFactory getRequestFactory()
bufferRequests
public static org.springframework.http.client.ClientHttpRequestFactory bufferRequests(org.springframework.http.client.ClientHttpRequestFactory requestFactory)
- Decorates a request factory to buffer responses so that the responses may be repeatedly read.
- Parameters:
requestFactory
- the request factory to be decorated for buffering
- Returns:
- a buffering request factory