Class RootServicesHelper

java.lang.Object
org.eclipse.lyo.client.RootServicesHelper

public class RootServicesHelper extends Object
Helper class to assist in retrieval of attributes from the IBM Rational Jazz rootservices document This class is not currently thread safe.
  • Field Details

  • 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/ccm
      catalogDomain - - Namespace of the OSLC domain to find the catalog for. Example: OSLCConstants.OSLC_CM
      Throws:
      RootServicesException
  • Method Details

    • getCatalogUrl

      public String getCatalogUrl()
      Get the OSLC Catalog URL
      Returns:
      the catalog URL
    • getRdfModel

      public Model 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

      public String getAuthorizationRealm()
    • getRequestTokenUrl

      public String getRequestTokenUrl()
    • getAuthorizationTokenUrl

      public String getAuthorizationTokenUrl()
    • getAccessTokenUrl

      public String getAccessTokenUrl()
    • getRequestConsumerKeyUrl

      public String getRequestConsumerKeyUrl()
      Gets the URL for requesting an OAuth consumer key.
      Returns:
      the request consumer key URL
      See Also:
    • getConsumerApprovalUrl

      public String getConsumerApprovalUrl()
      Gets the URL for approving an OAuth consumer
      Returns:
      the approval URL
      See Also:
    • getConsumerApprovalUrl

      public String getConsumerApprovalUrl(String consumerKey)
    • requestConsumerKey

      public String requestConsumerKey(String consumerName, String consumerSecret) throws org.apache.http.client.ClientProtocolException, IOException
      Throws:
      org.apache.http.client.ClientProtocolException
      IOException