org.springframework.security.oauth.consumer.net
Class DefaultOAuthURLStreamHandlerFactory

java.lang.Object
  extended by org.springframework.security.oauth.consumer.net.DefaultOAuthURLStreamHandlerFactory
All Implemented Interfaces:
OAuthURLStreamHandlerFactory

public class DefaultOAuthURLStreamHandlerFactory
extends Object
implements OAuthURLStreamHandlerFactory

Default implementation. Assumes we're running on Sun's JVM.

Author:
Ryan Heaton

Constructor Summary
DefaultOAuthURLStreamHandlerFactory()
           
 
Method Summary
 URLStreamHandler getHttpsStreamHandler(ProtectedResourceDetails resourceDetails, OAuthConsumerToken accessToken, OAuthConsumerSupport support, String httpMethod, Map<String,String> additionalParameters)
          Get the handler for an HTTPS stream.
 URLStreamHandler getHttpStreamHandler(ProtectedResourceDetails resourceDetails, OAuthConsumerToken accessToken, OAuthConsumerSupport support, String httpMethod, Map<String,String> additionalParameters)
          Get the handler for an HTTP stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultOAuthURLStreamHandlerFactory

public DefaultOAuthURLStreamHandlerFactory()
Method Detail

getHttpStreamHandler

public URLStreamHandler getHttpStreamHandler(ProtectedResourceDetails resourceDetails,
                                             OAuthConsumerToken accessToken,
                                             OAuthConsumerSupport support,
                                             String httpMethod,
                                             Map<String,String> additionalParameters)
Description copied from interface: OAuthURLStreamHandlerFactory
Get the handler for an HTTP stream.

Specified by:
getHttpStreamHandler in interface OAuthURLStreamHandlerFactory
Parameters:
resourceDetails - The resource details.
accessToken - The access token.
support - The logic support.
httpMethod - The http method.
additionalParameters - Additional parameters.
Returns:
The stream handler.

getHttpsStreamHandler

public URLStreamHandler getHttpsStreamHandler(ProtectedResourceDetails resourceDetails,
                                              OAuthConsumerToken accessToken,
                                              OAuthConsumerSupport support,
                                              String httpMethod,
                                              Map<String,String> additionalParameters)
Description copied from interface: OAuthURLStreamHandlerFactory
Get the handler for an HTTPS stream.

Specified by:
getHttpsStreamHandler in interface OAuthURLStreamHandlerFactory
Parameters:
resourceDetails - The resource details.
accessToken - The access token.
support - The logic support.
httpMethod - The http method.
additionalParameters - Additional parameters.
Returns:
The stream handler.


Copyright © 2012. All Rights Reserved.