public class APIEndpointSpec extends Object implements EndpointDetails, NamedViews, APIQuery.QueryBasis
Modifier and Type | Field and Description |
---|---|
protected APIQuery |
baseQuery |
protected Bindings |
bindings |
protected String |
cachePolicyName |
protected String |
defaultLanguage |
int |
defaultPageSize |
protected int |
describeThreshold |
protected com.hp.hpl.jena.rdf.model.Resource |
endpointResource |
protected Set<String> |
explicitViewNames |
protected Factories |
factoryTable |
protected String |
graphTemplate |
protected String |
itemTemplate |
int |
maxPageSize |
protected String |
name |
protected APISpec |
parentApi |
protected boolean |
purging |
protected TextSearchConfig |
textSearchConfig |
protected String |
uriTemplate |
protected Map<String,View> |
views |
protected boolean |
wantsContext |
oneNamedView
Constructor and Description |
---|
APIEndpointSpec(APISpec apiSpec,
APISpec parent,
com.hp.hpl.jena.rdf.model.Resource endpoint) |
Modifier and Type | Method and Description |
---|---|
protected void |
addSelectors(com.hp.hpl.jena.rdf.model.Resource endpoint) |
void |
addViewers(com.hp.hpl.jena.rdf.model.Resource root,
Map<String,View> views) |
String |
createURITemplate(com.hp.hpl.jena.rdf.model.Resource endpoint) |
protected boolean |
enableETags(com.hp.hpl.jena.rdf.model.Resource ep) |
Map<String,View> |
extractViews() |
APISpec |
getAPISpec()
Return the overall APISpec of which this instance is a part.
|
APIQuery |
getBaseQuery()
Return a base query for this endpoint.
|
Bindings |
getBindings()
Return the variable bindings of this endpoint.
|
long |
getCacheExpiryMilliseconds() |
String |
getCachePolicyName() |
String |
getDefaultLanguage()
The default language for encoding plain literals (null if no default).
|
int |
getDefaultPageSize() |
View |
getDefaultView()
Return the default view template definition, if any
|
Boolean |
getEnableCounting() |
Set<String> |
getExplicitViewNames() |
String |
getGraphTemplate()
Return the graph template string associated with this endpoint,
or null if none was specified.
|
String |
getItemTemplate()
Return the item template of this endpoint, or null if there
isn't one (eg it's a list endpoint).
|
int |
getMaxPageSize() |
boolean |
getPurging() |
Factories |
getRendererFactoryTable() |
com.hp.hpl.jena.rdf.model.Resource |
getResource() |
String |
getSpecificationURI()
Return the specification URI for this Endpoint, which is
the specification URI for its parent APISpec.
|
TextSearchConfig |
getTextSearchConfig() |
String |
getURI() |
String |
getURITemplate()
Return the URI template at which this instance should
be located
|
View |
getView(String viewname)
Return the view template definition for the given named view
|
boolean |
hasParameterBasedContentNegotiation() |
protected void |
instantiateBaseQuery(com.hp.hpl.jena.rdf.model.Resource endpoint) |
boolean |
isItemEndpoint() |
boolean |
isListEndpoint() |
protected void |
setAllowedReserved(com.hp.hpl.jena.rdf.model.Resource endpoint,
APIQuery q) |
ShortnameService |
sns() |
String |
toString()
Printable summary for debugging
|
Set<String> |
viewNames()
Return (a copy of) the set of names of views in this
EndpointSpec.
|
boolean |
wantsContext() |
protected final APISpec parentApi
protected final String name
protected final com.hp.hpl.jena.rdf.model.Resource endpointResource
protected final TextSearchConfig textSearchConfig
protected APIQuery baseQuery
protected String uriTemplate
protected final String defaultLanguage
protected final String itemTemplate
protected final String graphTemplate
protected final boolean wantsContext
protected final String cachePolicyName
protected final int describeThreshold
public final int defaultPageSize
public final int maxPageSize
protected final Bindings bindings
protected final Factories factoryTable
protected final boolean purging
public String createURITemplate(com.hp.hpl.jena.rdf.model.Resource endpoint)
public boolean isListEndpoint()
isListEndpoint
in interface EndpointDetails
public boolean isItemEndpoint()
isItemEndpoint
in interface APIQuery.QueryBasis
public boolean wantsContext()
public String getCachePolicyName()
public String getURI()
public com.hp.hpl.jena.rdf.model.Resource getResource()
public ShortnameService sns()
sns
in interface APIQuery.QueryBasis
public int getMaxPageSize()
getMaxPageSize
in interface APIQuery.QueryBasis
public int getDefaultPageSize()
getDefaultPageSize
in interface APIQuery.QueryBasis
protected void instantiateBaseQuery(com.hp.hpl.jena.rdf.model.Resource endpoint)
protected boolean enableETags(com.hp.hpl.jena.rdf.model.Resource ep)
protected void setAllowedReserved(com.hp.hpl.jena.rdf.model.Resource endpoint, APIQuery q)
protected void addSelectors(com.hp.hpl.jena.rdf.model.Resource endpoint)
public APIQuery getBaseQuery()
public APISpec getAPISpec()
public String getDefaultLanguage()
getDefaultLanguage
in interface APIQuery.QueryBasis
public String getURITemplate()
public String toString()
public View getView(String viewname)
getView
in interface NamedViews
public View getDefaultView()
getDefaultView
in interface NamedViews
public Bindings getBindings()
public String getItemTemplate()
getItemTemplate
in interface APIQuery.QueryBasis
public String getGraphTemplate()
getGraphTemplate
in interface APIQuery.QueryBasis
public Factories getRendererFactoryTable()
public Set<String> viewNames()
public String getSpecificationURI()
public boolean hasParameterBasedContentNegotiation()
hasParameterBasedContentNegotiation
in interface EndpointDetails
public TextSearchConfig getTextSearchConfig()
getTextSearchConfig
in interface APIQuery.QueryBasis
public Boolean getEnableCounting()
getEnableCounting
in interface APIQuery.QueryBasis
public long getCacheExpiryMilliseconds()
getCacheExpiryMilliseconds
in interface APIQuery.QueryBasis
public boolean getPurging()
getPurging
in interface APIQuery.QueryBasis
Copyright © 2014. All Rights Reserved.