Class HTTPRepositoryConfig
- java.lang.Object
-
- org.eclipse.rdf4j.repository.config.AbstractRepositoryImplConfig
-
- org.eclipse.rdf4j.repository.http.config.HTTPRepositoryConfig
-
- All Implemented Interfaces:
RepositoryImplConfig
public class HTTPRepositoryConfig extends AbstractRepositoryImplConfig
- Author:
- Arjohn Kampman
-
-
Constructor Summary
Constructors Constructor Description HTTPRepositoryConfig()HTTPRepositoryConfig(String url)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Resourceexport(Model graph)Export thisRepositoryImplConfigto its RDF representationStringgetPassword()StringgetURL()StringgetUsername()voidparse(Model model, Resource implNode)Reads the properties of thisRepositoryImplConfigfrom the supplied Model and sets them accordingly.voidsetPassword(String password)voidsetURL(String url)voidsetUsername(String username)voidvalidate()Validates this configuration.-
Methods inherited from class org.eclipse.rdf4j.repository.config.AbstractRepositoryImplConfig
create, getType, setType
-
-
-
-
Constructor Detail
-
HTTPRepositoryConfig
public HTTPRepositoryConfig()
-
HTTPRepositoryConfig
public HTTPRepositoryConfig(String url)
-
-
Method Detail
-
getURL
public String getURL()
-
setURL
public void setURL(String url)
-
getUsername
public String getUsername()
-
setUsername
public void setUsername(String username)
-
getPassword
public String getPassword()
-
setPassword
public void setPassword(String password)
-
validate
public void validate() throws RepositoryConfigExceptionDescription copied from interface:RepositoryImplConfigValidates this configuration. ARepositoryConfigExceptionis thrown when the configuration is invalid. The exception should contain an error message that indicates why the configuration is invalid.- Specified by:
validatein interfaceRepositoryImplConfig- Overrides:
validatein classAbstractRepositoryImplConfig- Throws:
RepositoryConfigException- If the configuration is invalid.
-
export
public Resource export(Model graph)
Description copied from interface:RepositoryImplConfigExport thisRepositoryImplConfigto its RDF representation- Specified by:
exportin interfaceRepositoryImplConfig- Overrides:
exportin classAbstractRepositoryImplConfig- Parameters:
graph- aModelobject. After successful completion of this method this Model will contain the RDF representation of thisRepositoryImplConfig.- Returns:
- the subject
Resourcethat identifies thisRepositoryImplConfigin the Model.
-
parse
public void parse(Model model, Resource implNode) throws RepositoryConfigException
Description copied from interface:RepositoryImplConfigReads the properties of thisRepositoryImplConfigfrom the supplied Model and sets them accordingly.- Specified by:
parsein interfaceRepositoryImplConfig- Overrides:
parsein classAbstractRepositoryImplConfig- Parameters:
model- aModelcontaining repository configuration data.implNode- the subjectResourcethat identifies theRepositoryImplConfigin the Model.- Throws:
RepositoryConfigException- if the configuration data could not be read from the supplied Model.
-
-