Renderer.BytesOut, Renderer.UTF8
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_FORMAT |
static String |
DEFAULT_METADATA_OPTIONS |
static String |
DEFAULT_TEMPLATE
The default page template which will define the overall presentation unless
a template is named in the Elda configuration
|
Constructor and Description |
---|
VelocityRenderer(MediaType mt,
APIEndpoint ep,
com.hp.hpl.jena.rdf.model.Resource config,
CompleteContext.Mode prefixMode,
ShortnameService sns)
Construct a new Velocity renderer
|
Modifier and Type | Method and Description |
---|---|
com.hp.hpl.jena.rdf.model.Resource |
configRoot() |
APIEndpoint |
endpoint() |
MediaType |
getMediaType(Bindings irrelevant) |
CompleteContext.Mode |
getMode() |
String |
getPreferredSuffix()
Answer the format suffix associated with this renderer.
|
MetadataOptions |
metadataOptions()
Return the configured metadata options, or, if not specified in the API
configuration, the default options.
|
Renderer.BytesOut |
render(Times t,
Bindings b,
Map<String,String> termBindings,
APIResultSet results)
Render the given result set
|
ShortnameService |
shortNameService() |
String |
suffix() |
String |
templateName() |
public static final String DEFAULT_FORMAT
public static final String DEFAULT_METADATA_OPTIONS
public static final String DEFAULT_TEMPLATE
public VelocityRenderer(MediaType mt, APIEndpoint ep, com.hp.hpl.jena.rdf.model.Resource config, CompleteContext.Mode prefixMode, ShortnameService sns)
mt
- The media type that this renderer returns, usually text/html
ep
- The API endpoint configurationconfig
- The RDF resource that is the root of the API configuration declarationprefixMode
- The required prefix mode, or null
for defaultsns
- The current short name servicepublic MediaType getMediaType(Bindings irrelevant)
getMediaType
in interface Renderer
public String getPreferredSuffix()
Renderer
getPreferredSuffix
in interface Renderer
public CompleteContext.Mode getMode()
getMode
in interface Renderer
CompleteContext.Mode
that this renderer was initialised withpublic com.hp.hpl.jena.rdf.model.Resource configRoot()
public String suffix()
public String templateName()
public APIEndpoint endpoint()
public ShortnameService shortNameService()
public MetadataOptions metadataOptions()
public Renderer.BytesOut render(Times t, Bindings b, Map<String,String> termBindings, APIResultSet results)
Copyright © 2014. All Rights Reserved.