public class TitledContentRenderlet extends Object implements Renderlet
Renderer
.
This renderlet uses a thread-local variable to set the appropriate heading
level (h1 - h6)Renderlet.RequestProperties
Constructor and Description |
---|
TitledContentRenderlet() |
Modifier and Type | Method and Description |
---|---|
void |
render(GraphNode res,
GraphNode context,
Map<String,Object> sharedRenderingValues,
CallbackRenderer callbackRenderer,
URI renderingSpecification,
String mode,
javax.ws.rs.core.MediaType mediaType,
Renderlet.RequestProperties requestProperties,
OutputStream os)
Renders the data from
res with a appropriate rendering
engine. |
public void render(GraphNode res, GraphNode context, Map<String,Object> sharedRenderingValues, CallbackRenderer callbackRenderer, URI renderingSpecification, String mode, javax.ws.rs.core.MediaType mediaType, Renderlet.RequestProperties requestProperties, OutputStream os) throws IOException
Renderlet
res
with a appropriate rendering
engine.render
in interface Renderlet
res
- RDF resource to be rendered with the template.context
- RDF resource providing a rendering context.sharedRenderingValues
- a map that can be used for sharing values
across the different Renderlets involved in a rendering processcallbackRenderer
- renderer for call backs.renderingSpecification
- the rendering specificationmode
- the mode this Renderlet was invoked with, this is mainly used
so that the callbackRenderer can be claeed inheriting the mode.mediaType
- the media type this media produces (a part of)requestProperties
- properties of the http request, may be nullos
- where the output will be written to.IOException
Copyright © 2014 The Apache Software Foundation. All Rights Reserved.