@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 LinkedDataEndpointService
endpoint
- public void updateEndpoint(Endpoint endpoint)
updateEndpoint
in interface LinkedDataEndpointService
endpoint
- public List<Endpoint> listEndpoints()
listEndpoints
in interface LinkedDataEndpointService
public void removeEndpoint(Endpoint endpoint)
removeEndpoint
in interface LinkedDataEndpointService
endpoint
- public Endpoint getEndpoint(String id)
getEndpoint
in interface LinkedDataEndpointService
id
- ID of the endpoint to return.public Endpoint getEndpoint(org.openrdf.model.URI resource)
getEndpoint
in interface LinkedDataEndpointService
resource
- the KiWiUriResource to check.public boolean hasEndpoint(String urlPattern)
hasEndpoint
in interface LinkedDataEndpointService
urlPattern
- Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.