public class JazzRootServicesHelper extends Object
Modifier and Type | Field and Description |
---|---|
static String |
JD_NAMESPACE |
static String |
JFS_NAMESPACE |
Constructor and Description |
---|
JazzRootServicesHelper(String url,
String catalogDomain)
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 |
getCatalogUrl()
Get the OSLC Catalog URL
|
String |
getConsumerApprovalUrl()
Gets the URL for approving an OAuth consumer
|
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.
|
JazzFormAuthClient |
initFormClient(String userid,
String password) |
JazzFormAuthClient |
initFormClient(String userid,
String password,
String authUrl)
Creates a form auth client for authenticating with the Jazz server.
|
OslcOAuthClient |
initOAuthClient(String consumerKey,
String secret) |
public static final String JFS_NAMESPACE
public static final String JD_NAMESPACE
public JazzRootServicesHelper(String url, String catalogDomain) throws 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_CMRootServicesException
public String getCatalogUrl()
public OslcOAuthClient initOAuthClient(String consumerKey, String secret)
public JazzFormAuthClient initFormClient(String userid, String password)
public JazzFormAuthClient initFormClient(String userid, String password, String authUrl)
userid
- the Jazz user IDpassword
- the Jazz user password or form-based authenticationauthUrl
- - the base URL to use for authentication. This is normally the
application base URL for RQM and RTC and is the JTS
application URL for fronting applications like RRC and DM.public org.apache.jena.rdf.model.Model getRdfModel()
public String getRequestConsumerKeyUrl()
public String getConsumerApprovalUrl()
Copyright © 2019. All Rights Reserved.