public class RootServicesHelper extends Object
Modifier and Type | Field and Description |
---|---|
static String |
JD_NAMESPACE |
static String |
JFS_NAMESPACE |
Constructor and Description |
---|
RootServicesHelper(String url,
String catalogDomain,
OslcClient client)
Initialize Jazz rootservices-related URLs such as the catalog location and OAuth URLs
rootservices is unprotected and access does not require authentication
|
Modifier and Type | Method and Description |
---|---|
String |
getAccessTokenUrl() |
String |
getAuthorizationRealm() |
String |
getAuthorizationTokenUrl() |
String |
getCatalogUrl()
Get the OSLC Catalog URL
|
String |
getConsumerApprovalUrl()
Gets the URL for approving an OAuth consumer
|
String |
getConsumerApprovalUrl(String consumerKey) |
org.apache.jena.rdf.model.Model |
getRdfModel()
Returns the underlying RDF model for the rootservices document.
|
String |
getRequestConsumerKeyUrl()
Gets the URL for requesting an OAuth consumer key.
|
String |
getRequestTokenUrl() |
String |
requestConsumerKey(String consumerName,
String consumerSecret) |
public static final String JFS_NAMESPACE
public static final String JD_NAMESPACE
public RootServicesHelper(String url, String catalogDomain, OslcClient client) throws org.eclipse.lyo.client.exception.RootServicesException
url
- - base URL of the Jazz server, no including /rootservices. Example: https://example.com:9443/ccmcatalogDomain
- - Namespace of the OSLC domain to find the catalog for. Example: OSLCConstants.OSLC_CMorg.eclipse.lyo.client.exception.RootServicesException
public String getCatalogUrl()
public org.apache.jena.rdf.model.Model getRdfModel()
public String getAuthorizationRealm()
public String getRequestTokenUrl()
public String getAuthorizationTokenUrl()
public String getAccessTokenUrl()
public String getRequestConsumerKeyUrl()
public String getConsumerApprovalUrl()
public String requestConsumerKey(String consumerName, String consumerSecret) throws org.apache.http.client.ClientProtocolException, IOException
org.apache.http.client.ClientProtocolException
IOException
Copyright © 2020. All rights reserved.