Package org.eclipse.lyo.client
Class RootServicesHelper
java.lang.Object
org.eclipse.lyo.client.RootServicesHelper
Helper class to assist in retrieval of attributes from the IBM Rational
Jazz rootservices document
This class is not currently thread safe.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionRootServicesHelper
(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 -
Method Summary
Modifier and TypeMethodDescriptionGet the OSLC Catalog URLGets the URL for approving an OAuth consumergetConsumerApprovalUrl
(String consumerKey) Returns the underlying RDF model for the rootservices document.Gets the URL for requesting an OAuth consumer key.requestConsumerKey
(String consumerName, String consumerSecret)
-
Field Details
-
JFS_NAMESPACE
- See Also:
-
JD_NAMESPACE
- See Also:
-
-
Constructor Details
-
RootServicesHelper
public RootServicesHelper(String url, String catalogDomain, OslcClient client) throws RootServicesException Initialize Jazz rootservices-related URLs such as the catalog location and OAuth URLs rootservices is unprotected and access does not require authentication- Parameters:
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_CM- Throws:
RootServicesException
-
-
Method Details
-
getCatalogUrl
Get the OSLC Catalog URL- Returns:
- the catalog URL
-
getRdfModel
Returns the underlying RDF model for the rootservices document. This allows clients to read other service URLs not directly supported by this class.- Returns:
- the RDF model
-
getAuthorizationRealm
-
getRequestTokenUrl
-
getAuthorizationTokenUrl
-
getAccessTokenUrl
-
getRequestConsumerKeyUrl
Gets the URL for requesting an OAuth consumer key.- Returns:
- the request consumer key URL
- See Also:
-
getConsumerApprovalUrl
Gets the URL for approving an OAuth consumer- Returns:
- the approval URL
- See Also:
-
getConsumerApprovalUrl
-
requestConsumerKey
public String requestConsumerKey(String consumerName, String consumerSecret) throws org.apache.http.client.ClientProtocolException, IOException - Throws:
org.apache.http.client.ClientProtocolException
IOException
-