@ApplicationScoped public class LinkedDataEndpointServiceImpl extends Object implements LinkedDataEndpointService
| Constructor and Description |
|---|
LinkedDataEndpointServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addEndpoint(Endpoint endpoint)
Add a new endpoint to the system.
|
Endpoint |
getEndpoint(String id)
Return the endpoint with the given ID.
|
Endpoint |
getEndpoint(org.openrdf.model.URI resource)
Retrieve the endpoint matching the KiWiUriResource passed as argument.
|
boolean |
hasEndpoint(String urlPattern)
Test whether an endpoint definition for the given url pattern already exists.
|
void |
initialize() |
List<Endpoint> |
listEndpoints()
List all endpoints registered in the system.
|
void |
removeEndpoint(Endpoint endpoint)
Remove the endpoint given as argument.
|
void |
updateEndpoint(Endpoint endpoint)
`
Update the endpoint passed as argument in the database.
|
@PostConstruct public void initialize()
public void addEndpoint(Endpoint endpoint)
addEndpoint in interface LinkedDataEndpointServiceendpoint - public void updateEndpoint(Endpoint endpoint)
updateEndpoint in interface LinkedDataEndpointServiceendpoint - public List<Endpoint> listEndpoints()
listEndpoints in interface LinkedDataEndpointServicepublic void removeEndpoint(Endpoint endpoint)
removeEndpoint in interface LinkedDataEndpointServiceendpoint - public Endpoint getEndpoint(String id)
getEndpoint in interface LinkedDataEndpointServiceid - ID of the endpoint to return.public Endpoint getEndpoint(org.openrdf.model.URI resource)
getEndpoint in interface LinkedDataEndpointServiceresource - the KiWiUriResource to check.public boolean hasEndpoint(String urlPattern)
hasEndpoint in interface LinkedDataEndpointServiceurlPattern - Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.