public class HTTPRepositoryConfig extends AbstractRepositoryImplConfig
Constructor and Description |
---|
HTTPRepositoryConfig() |
HTTPRepositoryConfig(String url) |
Modifier and Type | Method and Description |
---|---|
Resource |
export(Model graph)
Export this
RepositoryImplConfig to its RDF representation |
String |
getPassword() |
String |
getURL() |
String |
getUsername() |
void |
parse(Model model,
Resource implNode)
Reads the properties of this
RepositoryImplConfig from the supplied Model and sets them accordingly. |
void |
setPassword(String password) |
void |
setURL(String url) |
void |
setUsername(String username) |
void |
validate()
Validates this configuration.
|
create, getType, setType
public HTTPRepositoryConfig()
public HTTPRepositoryConfig(String url)
public String getURL()
public void setURL(String url)
public String getUsername()
public void setUsername(String username)
public String getPassword()
public void setPassword(String password)
public void validate() throws RepositoryConfigException
RepositoryImplConfig
RepositoryConfigException
is thrown when the configuration is invalid.
The exception should contain an error message that indicates why the configuration is invalid.validate
in interface RepositoryImplConfig
validate
in class AbstractRepositoryImplConfig
RepositoryConfigException
- If the configuration is invalid.public Resource export(Model graph)
RepositoryImplConfig
RepositoryImplConfig
to its RDF representationexport
in interface RepositoryImplConfig
export
in class AbstractRepositoryImplConfig
graph
- a Model
object. After successful completion of this method this Model will contain the RDF
representation of this RepositoryImplConfig
.Resource
that identifies this RepositoryImplConfig
in the Model.public void parse(Model model, Resource implNode) throws RepositoryConfigException
RepositoryImplConfig
RepositoryImplConfig
from the supplied Model and sets them accordingly.parse
in interface RepositoryImplConfig
parse
in class AbstractRepositoryImplConfig
model
- a Model
containing repository configuration data.implNode
- the subject Resource
that identifies the RepositoryImplConfig
in the Model.RepositoryConfigException
- if the configuration data could not be read from the supplied Model.Copyright © 2015-2019 Eclipse Foundation. All Rights Reserved.