@Provider @Produces(value={"text/html","application/xhtml+xml"}) public class StreamingBaseHtmlProvider extends Object implements javax.ws.rs.ext.MessageBodyWriter<RdfNamespacedStream>
Modifier and Type | Field and Description |
---|---|
static String |
commonCssLocation
Location in the classpath where the common css file is to be found.
|
static String |
commonJsLocation
Location in the classpath where the common javascript file is to be found.
|
static String |
templateFilenameExtension |
static String |
templatesLocation
Location in the classpath where Velocity templates are to be found.
|
protected Map<String,org.apache.velocity.Template> |
templatesMap
A map from String names for primary node types to the Velocity templates
that should be used for those node types.
|
protected org.apache.velocity.app.VelocityEngine |
velocity |
static String |
velocityPropertiesLocation |
Constructor and Description |
---|
StreamingBaseHtmlProvider() |
Modifier and Type | Method and Description |
---|---|
protected org.apache.velocity.context.Context |
getContext(com.hp.hpl.jena.rdf.model.Model model,
com.hp.hpl.jena.graph.Node subject) |
long |
getSize(RdfNamespacedStream t,
Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType) |
boolean |
isWriteable(Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType) |
void |
writeTo(RdfNamespacedStream nsStream,
Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders,
OutputStream entityStream) |
protected org.apache.velocity.app.VelocityEngine velocity
public static final String templatesLocation
public static final String commonCssLocation
public static final String commonJsLocation
protected Map<String,org.apache.velocity.Template> templatesMap
public static final String templateFilenameExtension
public static final String velocityPropertiesLocation
public StreamingBaseHtmlProvider()
public void writeTo(RdfNamespacedStream nsStream, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders, OutputStream entityStream) throws IOException
writeTo
in interface javax.ws.rs.ext.MessageBodyWriter<RdfNamespacedStream>
IOException
protected org.apache.velocity.context.Context getContext(com.hp.hpl.jena.rdf.model.Model model, com.hp.hpl.jena.graph.Node subject)
public boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
isWriteable
in interface javax.ws.rs.ext.MessageBodyWriter<RdfNamespacedStream>
public long getSize(RdfNamespacedStream t, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
getSize
in interface javax.ws.rs.ext.MessageBodyWriter<RdfNamespacedStream>
Copyright © 2013–2016 DuraSpace, Inc.. All rights reserved.