org.eclipse.lyo.client.oslc
Class OslcOAuthClient
java.lang.Object
org.eclipse.lyo.client.oslc.OslcClient
org.eclipse.lyo.client.oslc.OslcOAuthClient
public class OslcOAuthClient
- extends OslcClient
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 |
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
-
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.