public class APISpec extends Object
Modifier and Type | Field and Description |
---|---|
protected String |
base |
Bindings |
bindings |
protected long |
cacheExpiryMilliseconds |
String |
cachePolicyName |
protected Source |
dataSource |
static int |
DEFAULT_DESCRIBE_THRESHOLD
The default number of selected items required for a DESCRIBE
query to use nested selects if they are available.
|
protected String |
defaultLanguage |
int |
defaultPageSize |
protected List<Source> |
describeSources |
int |
describeThreshold |
protected Boolean |
enableCounting |
protected List<APIEndpointSpec> |
endpoints |
protected Factories |
factoryTable |
protected String |
graphTemplate |
protected boolean |
hasParameterBasedContentNegotiation |
int |
maxPageSize |
protected ModelPrefixEditor |
modelPrefixEditor |
protected com.hp.hpl.jena.shared.PrefixMapping |
prefixes |
protected String |
prefixPath |
protected String |
primaryTopic |
protected PropertyExpiryTimes |
propertyExpiryTimes |
protected boolean |
purging |
protected ShortnameService |
sns |
protected String |
specificationURI |
protected TextSearchConfig |
textSearchConfig |
Constructor and Description |
---|
APISpec(com.hp.hpl.jena.util.FileManager fm,
com.hp.hpl.jena.rdf.model.Resource specification,
ModelLoader loader) |
APISpec(String prefixPath,
com.hp.hpl.jena.util.FileManager fm,
com.hp.hpl.jena.rdf.model.Resource specification,
ModelLoader loader) |
APISpec(String prefixPath,
String appName,
com.hp.hpl.jena.util.FileManager fm,
com.hp.hpl.jena.rdf.model.Resource root,
ModelLoader loader) |
Modifier and Type | Method and Description |
---|---|
protected APIEndpointSpec |
getAPIEndpointSpec(com.hp.hpl.jena.rdf.model.Resource endpoint)
Returns a new APIEndpointSpec for this APISpec and the given endpoint
|
String |
getBase()
Answer the value of api:base for this configuration, or null if
no api:base was provided.
|
Bindings |
getBindings()
Answer the bindings of variables for this API configuration.
|
long |
getCacheExpiryMilliseconds() |
String |
getCachePolicyName() |
Source |
getDataSource()
Return the data source (remote or local) which this
API wraps.
|
String |
getDefaultLanguage()
The default language for encoding plain literals (null if no default).
|
List<Source> |
getDescribeSources() |
Boolean |
getEnableCounting() |
List<APIEndpointSpec> |
getEndpoints()
Return list of individual instances which make up this API.
|
String |
getGraphTemplate() |
ModelPrefixEditor |
getModelPrefixEditor() |
com.hp.hpl.jena.shared.PrefixMapping |
getPrefixMap()
Return the prefix mapping, applies to whole API
|
String |
getPrefixPath() |
String |
getPrimaryTopic()
Return the primary topic of this list/set, or null if none is specified
|
PropertyExpiryTimes |
getPropertyExpiryTimes() |
Factories |
getRendererFactoryTable()
Answer a copy of the renderer factory map.
|
ShortnameService |
getShortnameService()
Return a utility for mapping names to short names as
configured for this API.
|
String |
getSpecURI()
The URI for the RDF resource which specifies this API
|
TextSearchConfig |
getTextSearchConfig() |
boolean |
hasParameterBasedContentNegotiation() |
String |
toString()
Printable representation for debugging
|
protected final List<APIEndpointSpec> endpoints
protected final com.hp.hpl.jena.shared.PrefixMapping prefixes
protected final ShortnameService sns
protected final Source dataSource
protected final String primaryTopic
protected final String specificationURI
protected final String defaultLanguage
protected final String base
protected final TextSearchConfig textSearchConfig
public final int defaultPageSize
public final int maxPageSize
protected final Factories factoryTable
protected final boolean hasParameterBasedContentNegotiation
public final Bindings bindings
protected final String prefixPath
public final int describeThreshold
public final String cachePolicyName
protected final ModelPrefixEditor modelPrefixEditor
protected final Boolean enableCounting
protected final long cacheExpiryMilliseconds
protected final PropertyExpiryTimes propertyExpiryTimes
protected final String graphTemplate
public static final int DEFAULT_DESCRIBE_THRESHOLD
protected final boolean purging
public APISpec(com.hp.hpl.jena.util.FileManager fm, com.hp.hpl.jena.rdf.model.Resource specification, ModelLoader loader)
public APISpec(String prefixPath, com.hp.hpl.jena.util.FileManager fm, com.hp.hpl.jena.rdf.model.Resource specification, ModelLoader loader)
public APISpec(String prefixPath, String appName, com.hp.hpl.jena.util.FileManager fm, com.hp.hpl.jena.rdf.model.Resource root, ModelLoader loader)
public com.hp.hpl.jena.shared.PrefixMapping getPrefixMap()
public ShortnameService getShortnameService()
public List<APIEndpointSpec> getEndpoints()
public Source getDataSource()
public String getPrimaryTopic()
public String getSpecURI()
public String getDefaultLanguage()
public String toString()
public Bindings getBindings()
public String getBase()
public Factories getRendererFactoryTable()
public String getCachePolicyName()
protected APIEndpointSpec getAPIEndpointSpec(com.hp.hpl.jena.rdf.model.Resource endpoint)
public boolean hasParameterBasedContentNegotiation()
public ModelPrefixEditor getModelPrefixEditor()
public TextSearchConfig getTextSearchConfig()
public String getPrefixPath()
public long getCacheExpiryMilliseconds()
public Boolean getEnableCounting()
public PropertyExpiryTimes getPropertyExpiryTimes()
public String getGraphTemplate()
Copyright © 2014. All Rights Reserved.