at.newmedialab.ldclient.service
Class LDEndpoints

java.lang.Object
  extended by at.newmedialab.ldclient.service.LDEndpoints

public class LDEndpoints
extends Object

Add file description here!

Author: Sebastian Schaffert


Constructor Summary
LDEndpoints()
           
 
Method Summary
 void addEndpoint(Endpoint endpoint)
          Add a new endpoint to the system.
 Endpoint getEndpoint(org.openrdf.model.URI resource)
          Retrieve the endpoint matching the KiWiUriResource passed as argument.
 List<Endpoint> listEndpoints()
          List all endpoints registered in the system.
 void removeEndpoint(Endpoint endpoint)
          Remove the endpoint given as argument.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LDEndpoints

public LDEndpoints()
Method Detail

addEndpoint

public void addEndpoint(Endpoint endpoint)
Add a new endpoint to the system. The endpoint will be persisted in the database.

Parameters:
endpoint -

listEndpoints

public List<Endpoint> listEndpoints()
List all endpoints registered in the system.

Returns:
a list of endpoints in the order they were added to the database.

removeEndpoint

public void removeEndpoint(Endpoint endpoint)
Remove the endpoint given as argument. The endpoint will be deleted in the database.

Parameters:
endpoint -

getEndpoint

public Endpoint getEndpoint(org.openrdf.model.URI resource)
Retrieve the endpoint matching the KiWiUriResource passed as argument. The endpoint is determined by matching the endpoint's URI prefix with the resource URI. If no matching endpoint exists, returns null. The LinkedDataClientService can then decide (based on configuration) whether to try with a standard LinkedDataRequest or ignore the request.

Parameters:
resource - the KiWiUriResource to check.


Copyright © 2012-2013 Salzburg Research. All Rights Reserved.