org.eclipse.lyo.client.oslc
Class OslcOAuthClient

java.lang.Object
  extended by org.eclipse.lyo.client.oslc.OslcClient
      extended by org.eclipse.lyo.client.oslc.OslcOAuthClient

public class OslcOAuthClient
extends OslcClient


Nested Class Summary
 
Nested classes/interfaces inherited from class org.eclipse.lyo.client.oslc.OslcClient
OslcClient.OAuthHttpPool
 
Field Summary
 
Fields inherited from class org.eclipse.lyo.client.oslc.OslcClient
httpClient
 
Constructor Summary
OslcOAuthClient(String requestTokenURL, String authorizationTokenURL, String accessTokenURL, String consumerKey, String consumerSecret)
          Initialize an OAuthClient with the required OAuth URLs
OslcOAuthClient(String requestTokenURL, String authorizationTokenURL, String accessTokenURL, String consumerKey, String consumerSecret, String oauthRealmName)
          Initialize an OAuthClient with the required OAuth URLs
 
Method Summary
 org.apache.wink.client.ClientResponse getResource(String url, String mediaType)
          Abstract method get an OSLC resource and return a Wink ClientResponse
 
Methods inherited from class org.eclipse.lyo.client.oslc.OslcClient
createResource, createResource, deleteResource, getClientConfig, getClientPool, getHttpClient, getQueryResource, lookupCreationFactory, lookupQueryCapability, lookupServiceProviderUrl, updateResource, updateResource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OslcOAuthClient

public OslcOAuthClient(String requestTokenURL,
                       String authorizationTokenURL,
                       String accessTokenURL,
                       String consumerKey,
                       String consumerSecret)
Initialize an OAuthClient with the required OAuth URLs

Parameters:
requestTokenURL -
authorizationTokenURL -
accessTokenURL -
consumerKey -
consumerSecret -

OslcOAuthClient

public OslcOAuthClient(String requestTokenURL,
                       String authorizationTokenURL,
                       String accessTokenURL,
                       String consumerKey,
                       String consumerSecret,
                       String oauthRealmName)
Initialize an OAuthClient with the required OAuth URLs

Parameters:
requestTokenURL -
authorizationTokenURL -
accessTokenURL -
consumerKey -
consumerSecret -
Method Detail

getResource

public org.apache.wink.client.ClientResponse getResource(String url,
                                                         String mediaType)
                                                  throws IOException,
                                                         net.oauth.OAuthException,
                                                         URISyntaxException
Description copied from class: OslcClient
Abstract method get an OSLC resource and return a Wink ClientResponse

Overrides:
getResource in class OslcClient
Returns:
a Wink ClientResponse
Throws:
IOException
net.oauth.OAuthException
URISyntaxException


Copyright © 2013. All Rights Reserved.