at.newmedialab.ldclient.model
Class Endpoint

java.lang.Object
  extended by at.newmedialab.ldclient.model.Endpoint

public class Endpoint
extends Object

Definition of a Linked Data Endpoint. Contains information how to query the endpoint, what format to expect, and when to expire data from this endpoint.

User: sschaffe


Nested Class Summary
static class Endpoint.EndpointType
           
 
Field Summary
static String REGEX_INDICATOR
           
 
Constructor Summary
Endpoint()
           
Endpoint(String name, Endpoint.EndpointType type, String uriPrefix, String endpointUrl, String contentType, Long defaultExpiry)
           
 
Method Summary
 boolean equals(Object o)
           
 String getContentType()
           
 Long getDefaultExpiry()
           
 String getEndpointUrl()
           
 Long getId()
           
 String getName()
           
 Endpoint.EndpointType getType()
           
 String getUriPrefix()
           
 boolean handles(String uri)
          Check if this Endpoint handles (is responsible) for this URI.
 boolean handles(org.openrdf.model.URI resource)
          Check if this Endpoint handles (is responsible) for this URI.
 int hashCode()
           
 void setContentType(String contentType)
           
 void setDefaultExpiry(Long defaultExpiry)
           
 void setEndpointUrl(String endpointUrl)
           
 void setId(Long id)
           
 void setName(String name)
           
 void setType(Endpoint.EndpointType type)
           
 void setUriPrefix(String uriPrefix)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

REGEX_INDICATOR

public static final String REGEX_INDICATOR
See Also:
Constant Field Values
Constructor Detail

Endpoint

public Endpoint()

Endpoint

public Endpoint(String name,
                Endpoint.EndpointType type,
                String uriPrefix,
                String endpointUrl,
                String contentType,
                Long defaultExpiry)
Method Detail

getId

public Long getId()

setId

public void setId(Long id)

getName

public String getName()

setName

public void setName(String name)

getType

public Endpoint.EndpointType getType()

setType

public void setType(Endpoint.EndpointType type)

getUriPrefix

public String getUriPrefix()

setUriPrefix

public void setUriPrefix(String uriPrefix)

getEndpointUrl

public String getEndpointUrl()

setEndpointUrl

public void setEndpointUrl(String endpointUrl)

getContentType

public String getContentType()

setContentType

public void setContentType(String contentType)

getDefaultExpiry

public Long getDefaultExpiry()

setDefaultExpiry

public void setDefaultExpiry(Long defaultExpiry)

handles

public boolean handles(org.openrdf.model.URI resource)
Check if this Endpoint handles (is responsible) for this URI.

Parameters:
resource - the Resource to check
Returns:
true if the Resource's uri matches the endpoint's uriPrefix
See Also:
uriPrefix

handles

public boolean handles(String uri)
Check if this Endpoint handles (is responsible) for this URI.

Parameters:
uri - the URI to check
Returns:
true if the uri matches the endpoint's uriPrefix
See Also:
uriPrefix

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


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