@Provider public class BaseHtmlProvider extends Object implements javax.ws.rs.ext.MessageBodyWriter<com.hp.hpl.jena.query.Dataset>
| Modifier and Type | Field and Description |
|---|---|
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 |
|---|
BaseHtmlProvider() |
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.velocity.context.Context |
getContext(com.hp.hpl.jena.query.Dataset rdf,
com.hp.hpl.jena.graph.Node subject) |
long |
getSize(com.hp.hpl.jena.query.Dataset 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(com.hp.hpl.jena.query.Dataset rdf,
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
protected Map<String,org.apache.velocity.Template> templatesMap
public static final String templateFilenameExtension
public static final String velocityPropertiesLocation
public void writeTo(com.hp.hpl.jena.query.Dataset rdf,
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<com.hp.hpl.jena.query.Dataset>IOExceptionprotected org.apache.velocity.context.Context getContext(com.hp.hpl.jena.query.Dataset rdf,
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<com.hp.hpl.jena.query.Dataset>public long getSize(com.hp.hpl.jena.query.Dataset t,
Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType)
getSize in interface javax.ws.rs.ext.MessageBodyWriter<com.hp.hpl.jena.query.Dataset>Copyright © 2013-2014 DuraSpace, Inc.. All Rights Reserved.