Package solutions.linked.slds
Class ConfigUtils
- java.lang.Object
-
- solutions.linked.slds.ConfigUtils
-
public class ConfigUtils extends Object
Provides some utility-methods based on configuration.- Author:
- noam
-
-
Constructor Summary
Constructors Constructor Description ConfigUtils(org.apache.clerezza.rdf.utils.GraphNode config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddCredentials(org.apache.http.client.CredentialsProvider credsProvider)org.apache.http.impl.client.CloseableHttpClientcreateHttpClient()Creates a CloseableHttpClient that authenticates using the credentials supplied in the config.booleanenableVituosoWorkAround()StringgetPassword()org.apache.clerezza.rdf.utils.GraphNodegetSparqlEndpointNode()org.apache.clerezza.commons.rdf.IRIgetSparqlEndpointUri()StringgetUserName()
-
-
-
Method Detail
-
createHttpClient
public org.apache.http.impl.client.CloseableHttpClient createHttpClient()
Creates a CloseableHttpClient that authenticates using the credentials supplied in the config.- Returns:
- the HTTP Client
-
addCredentials
protected void addCredentials(org.apache.http.client.CredentialsProvider credsProvider)
-
getUserName
public String getUserName()
-
getPassword
public String getPassword()
-
getSparqlEndpointNode
public org.apache.clerezza.rdf.utils.GraphNode getSparqlEndpointNode()
-
getSparqlEndpointUri
public org.apache.clerezza.commons.rdf.IRI getSparqlEndpointUri()
-
enableVituosoWorkAround
public boolean enableVituosoWorkAround()
-
-