public URL configureURLForProtectedAccess ( URL url , OAuthConsumerToken accessToken , String httpMethod , Map < String , String > additionalParameters ) throws OAuthRequestFailedException { return configureURLForProtectedAccess ( url , accessToken , getProtectedResourceDetailsService ( ) . loadProtectedResourceDetailsById ( accessToken . getResourceId ( ) ) , httpMethod , additionalParameters ) ; }
Create a configured URL . If the HTTP method to access the resource is POST or PUT and the Authorization header isn t supported then the OAuth parameters will be expected to be sent in the body of the request . Otherwise you can assume that the given URL is ready to be used without further work .