public class Endpoint extends Object implements Comparable<Endpoint>
SELECT ?p ?o WHERE { {url} ?p ?o }
to retrieve all triples
for the requested resource
Modifier and Type | Field and Description |
---|---|
static int |
PRIORITY_HIGH
constant indicating high priority of this endpoint definition
|
static int |
PRIORITY_LOW
constant indicating low priority of this endpoint definition
|
static int |
PRIORITY_MEDIUM
constant indicating medium priority of this endpoint definition
|
static String |
REGEX_INDICATOR |
Constructor and Description |
---|
Endpoint() |
Endpoint(String name,
String type,
String uriPattern,
String endpointUrl,
Long defaultExpiry) |
Endpoint(String name,
String type,
String uriPattern,
String endpointUrl,
String contentType,
Long defaultExpiry) |
Modifier and Type | Method and Description |
---|---|
void |
addContentType(org.apache.marmotta.commons.http.ContentType type) |
int |
compareTo(Endpoint o)
Compares this object with the specified object for order according to priority.
|
boolean |
equals(Object o) |
Set<org.apache.marmotta.commons.http.ContentType> |
getContentTypes() |
Long |
getDefaultExpiry() |
String |
getEndpointUrl() |
String |
getName() |
int |
getPriority() |
String |
getProperty(String key) |
String |
getType() |
String |
getUriPattern() |
Pattern |
getUriPatternCompiled() |
boolean |
handles(String uri)
Check if this
Endpoint handles (is responsible) for this URI. |
int |
hashCode() |
boolean |
hasProperty(String key) |
boolean |
isActive() |
void |
setActive(boolean active) |
void |
setContentTypes(Set<org.apache.marmotta.commons.http.ContentType> contentTypes) |
void |
setDefaultExpiry(Long defaultExpiry) |
void |
setEndpointUrl(String endpointUrl) |
void |
setName(String name) |
void |
setPriority(int priority) |
void |
setProperty(String key,
String value) |
void |
setType(String type) |
void |
setUriPattern(String uriPattern) |
public static final int PRIORITY_HIGH
public static final int PRIORITY_MEDIUM
public static final int PRIORITY_LOW
public static final String REGEX_INDICATOR
public Endpoint()
public Endpoint(String name, String type, String uriPattern, String endpointUrl, Long defaultExpiry)
public String getName()
public void setName(String name)
public String getType()
public void setType(String type)
public String getUriPattern()
public void setUriPattern(String uriPattern)
public String getEndpointUrl()
public void setEndpointUrl(String endpointUrl)
public Set<org.apache.marmotta.commons.http.ContentType> getContentTypes()
public void addContentType(org.apache.marmotta.commons.http.ContentType type)
public void setContentTypes(Set<org.apache.marmotta.commons.http.ContentType> contentTypes)
public Long getDefaultExpiry()
public void setDefaultExpiry(Long defaultExpiry)
public boolean isActive()
public void setActive(boolean active)
public int getPriority()
public void setPriority(int priority)
public boolean hasProperty(String key)
public Pattern getUriPatternCompiled()
public boolean handles(String uri)
Endpoint
handles (is responsible) for this URI.uri
- the URI to checktrue
if the uri matches the endpoint's uriPattern
uriPattern
public int compareTo(Endpoint o)
compareTo
in interface Comparable<Endpoint>
o
- the object to be compared.NullPointerException
- if the specified object is nullClassCastException
- if the specified object's type prevents it
from being compared to this object.getPriority()
Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.