org.springframework.security.oauth.consumer.client
Class OAuthClientHttpRequestFactory

java.lang.Object
  extended by org.springframework.security.oauth.consumer.client.OAuthClientHttpRequestFactory
All Implemented Interfaces:
org.springframework.http.client.ClientHttpRequestFactory

public class OAuthClientHttpRequestFactory
extends Object
implements org.springframework.http.client.ClientHttpRequestFactory

Request factory that extends all http requests with the OAuth credentials for a specific protected resource.

Author:
Ryan Heaton

Constructor Summary
OAuthClientHttpRequestFactory(org.springframework.http.client.ClientHttpRequestFactory delegate, ProtectedResourceDetails resource, OAuthConsumerSupport support)
           
 
Method Summary
 org.springframework.http.client.ClientHttpRequest createRequest(URI uri, org.springframework.http.HttpMethod httpMethod)
           
 Map<String,String> getAdditionalOAuthParameters()
          Any additional OAuth parameters to send with the OAuth request.
 void setAdditionalOAuthParameters(Map<String,String> additionalOAuthParameters)
          Any additional OAuth parameters to send with the OAuth request.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OAuthClientHttpRequestFactory

public OAuthClientHttpRequestFactory(org.springframework.http.client.ClientHttpRequestFactory delegate,
                                     ProtectedResourceDetails resource,
                                     OAuthConsumerSupport support)
Method Detail

createRequest

public org.springframework.http.client.ClientHttpRequest createRequest(URI uri,
                                                                       org.springframework.http.HttpMethod httpMethod)
                                                                throws IOException
Specified by:
createRequest in interface org.springframework.http.client.ClientHttpRequestFactory
Throws:
IOException

getAdditionalOAuthParameters

public Map<String,String> getAdditionalOAuthParameters()
Any additional OAuth parameters to send with the OAuth request.

Returns:
Any additional OAuth parameters to send with the OAuth request.

setAdditionalOAuthParameters

public void setAdditionalOAuthParameters(Map<String,String> additionalOAuthParameters)
Any additional OAuth parameters to send with the OAuth request.

Parameters:
additionalOAuthParameters - Any additional OAuth parameters to send with the OAuth request.


Copyright © 2012. All Rights Reserved.