Package | Description |
---|---|
com.epimorphics.lda.core |
The core package contains the core of Elda's functionality: the handling
of endpoint requests and select and view query construction.
|
com.epimorphics.lda.renderers |
The renderers package contains the Renderer interface and the standard
implementations -- HTML, JSON, XML, Turtle -- and the infrastructure for
accessing them.
|
com.epimorphics.lda.renderers.common |
A collection of utility classes that define a convenience API targeted
at renderer developers.
|
com.epimorphics.lda.renderers.velocity |
A renderer, based on Apache Velocity, for generating HTML views
of Elda resultsets.
|
com.epimorphics.lda.restlets |
The restlets package contains those classes which interact
with the web container in which Elda is embedded.
|
com.epimorphics.util |
The util package contains convenience classes.
|
Modifier and Type | Method and Description |
---|---|
Renderer |
APIEndpointImpl.getRendererByType(MediaType mt)
Answer a Renderer appropriate to the given MediaType
mt ,
configured with the appropriate shortname service. |
Renderer |
APIEndpoint.getRendererByType(MediaType mt)
Return the renderer known by the given media type.
|
Modifier and Type | Method and Description |
---|---|
static Renderer |
APIEndpointUtil.getRenderer(APIEndpoint ep,
String name,
List<MediaType> types)
Answer the renderer particular to the endpoint
ep . |
Modifier and Type | Field and Description |
---|---|
static MediaType |
FeedRendererFactory.atom |
Modifier and Type | Field and Description |
---|---|
protected Map<String,MediaType> |
Factories.nameToType |
protected Map<MediaType,RendererFactory> |
Factories.typeToFactory |
Modifier and Type | Method and Description |
---|---|
MediaType |
TextPlainRenderer.getMediaType(Bindings irrelevant) |
MediaType |
XMLRenderer.getMediaType(Bindings irrelevant) |
MediaType |
RDFXMLRenderer.getMediaType(Bindings irrelevant) |
MediaType |
JSONRenderer.getMediaType(Bindings b) |
MediaType |
FeedRenderer.getMediaType(Bindings rc) |
MediaType |
TurtleRenderer.getMediaType(Bindings irrelevant) |
MediaType |
Renderer.getMediaType(Bindings rc) |
MediaType |
Factories.getTypeForName(String name) |
Modifier and Type | Method and Description |
---|---|
RendererFactory |
Factories.getFactoryByType(MediaType mt) |
static void |
BuiltinRendererTable.putFactory(com.hp.hpl.jena.rdf.model.Resource config,
String name,
com.hp.hpl.jena.rdf.model.Resource type,
MediaType mt,
RendererFactory rf) |
void |
Factories.putFactory(String name,
com.hp.hpl.jena.rdf.model.Resource uri,
MediaType mt,
RendererFactory factory) |
void |
Factories.putFactory(String name,
com.hp.hpl.jena.rdf.model.Resource uri,
MediaType mt,
RendererFactory factory,
boolean isDefault) |
RendererFactory |
FeedRendererFactory.withMediaType(MediaType mt) |
RendererFactory |
VelocityRendererFactory.withMediaType(MediaType mt) |
RendererFactory |
JSONRendererFactory.withMediaType(MediaType mt) |
RendererFactory |
XMLRendererFactory.withMediaType(MediaType mt) |
RendererFactory |
RendererFactory.withMediaType(MediaType mt)
Answer a new RendererFactory just like this one, but producing
renderers that announce the given media type.
|
RendererFactory |
XSLT_RendererFactory.withMediaType(MediaType mt) |
Constructor and Description |
---|
FeedRenderer(MediaType mt,
com.hp.hpl.jena.rdf.model.Resource config,
ShortnameService sns) |
JSONRenderer(CompleteContext.Mode mode,
APIEndpoint api,
MediaType mt) |
JSONRendererFactory(MediaType mt) |
JSONRendererFactory(MediaType mt,
CompleteContext.Mode mode) |
XMLRenderer(CompleteContext.Mode mode,
ShortnameService sns,
MediaType mt,
String transformFilePath) |
XSLT_RendererFactory(com.hp.hpl.jena.rdf.model.Resource root,
MediaType mt) |
Modifier and Type | Method and Description |
---|---|
MediaType |
PageFormat.mimeType()
Return the media (mime) type of this format
|
Modifier and Type | Method and Description |
---|---|
MediaType |
VelocityRenderer.getMediaType(Bindings irrelevant) |
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 |
---|---|
static List<MediaType> |
JerseyUtils.getAcceptableMediaTypes(javax.ws.rs.core.HttpHeaders headers)
Translate the Jersey media types into Elda media types (because there will
be Jersey-less versions of Elda).
|
Modifier and Type | Method and Description |
---|---|
protected static Renderer |
RouterRestletSupport.changeMediaType(Renderer r,
MediaType mt)
Given a renderer r and a media type mt, return a new renderer which
behaves like r except that it announces its media type as mt.
|
Modifier and Type | Field and Description |
---|---|
static MediaType |
MediaType.APPLICATION_JAVASCRIPT |
static MediaType |
MediaType.APPLICATION_JSON |
static MediaType |
MediaType.APPLICATION_RDF_XML |
static MediaType |
MediaType.APPLICATION_XML |
static MediaType |
MediaType.NONE |
static MediaType |
MediaType.STAR_STAR |
static MediaType |
MediaType.TEXT_HTML |
static MediaType |
MediaType.TEXT_JAVASCRIPT |
static MediaType |
MediaType.TEXT_PLAIN |
static MediaType |
MediaType.TEXT_TURTLE |
static MediaType |
MediaType.TEXT_XML |
Modifier and Type | Method and Description |
---|---|
static MediaType |
MediaType.accept(List<MediaType> types,
String canHandle)
Answer one of the media types described in
canHandle
that are accepted by the earliest one of types . |
static MediaType |
MediaType.decodeType(String one)
Answer the media type described by T/S[; q=Q] in the
string
one . |
Modifier and Type | Method and Description |
---|---|
static List<MediaType> |
MediaType.decodeTypes(String a)
Answer a list of all the media types described in the
comma-separated list in the string
a . |
static List<MediaType> |
MediaType.mediaType(Enumeration<String> e)
Answer a list of all the media types described in the
elements of
e . |
Modifier and Type | Method and Description |
---|---|
boolean |
MediaType.accepts(MediaType s)
This MediaType accepts s if the types and subtypes match.
|
Modifier and Type | Method and Description |
---|---|
static MediaType |
MediaType.accept(List<MediaType> types,
String canHandle)
Answer one of the media types described in
canHandle
that are accepted by the earliest one of types . |
Copyright © 2014. All Rights Reserved.