Class ConfigUtils


  • public class ConfigUtils
    extends Object
    Provides some utility-methods based on configuration.
    Author:
    noam
    • Constructor Detail

      • ConfigUtils

        public ConfigUtils​(org.apache.clerezza.rdf.utils.GraphNode config)
    • 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()