|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.smartics.properties.admin.resources.representation.share.AbstractRepresentationRenderer<T>
T
- the type of the resource the renderer is rendering representations for.
public abstract class AbstractRepresentationRenderer<T>
Base implementation for document renderers.
Field Summary | |
---|---|
protected BreadcrumbHelper |
breadcrumb The helper to create the breadcrumbs. |
protected String |
characterEncoding The character encoding to use to render the output. |
protected OutputStream |
entityStream The original stream to write to. |
protected de.smartics.properties.utils.HtmlUtils |
htmlUtils Utilities to deal with HTML. |
protected LinkDescriptorFactory |
linkDescriptorFactory The factory to create link descriptors. |
protected HtmlPathHelper |
pathHelper Helper to localize application specific resources. |
Constructor Summary | |
---|---|
protected |
AbstractRepresentationRenderer(de.smartics.resteasy.hypermedia.renderer.ResourceContext context, String characterEncoding, OutputStream entityStream, String method) Default constructor using a stream. |
Method Summary | |
---|---|
protected abstract void |
close() Releases any resources held by the renderer. |
protected abstract void |
httpBody() Redners the HTTP body. |
void |
render() |
protected void |
renderAdditionalHttpHeader(javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders) Hook to override in subclasses to add additional HTTP headers. |
protected void |
renderHttpHeaderLink(javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders, de.smartics.resteasy.hypermedia.renderer.LinkDescriptor link) Renders a link in the HTTP header. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final OutputStream entityStream
protected final String characterEncoding
protected final HtmlPathHelper pathHelper
protected final LinkDescriptorFactory linkDescriptorFactory
protected final BreadcrumbHelper breadcrumb
protected final de.smartics.properties.utils.HtmlUtils htmlUtils
Constructor Detail |
---|
protected AbstractRepresentationRenderer(de.smartics.resteasy.hypermedia.renderer.ResourceContext context, String characterEncoding, OutputStream entityStream, String method)
context
- the context information to render the representation.
characterEncoding
- the character encoding to use to render the output.
entityStream
- the stream to write to.
method
- the method to select the service method of the resource.
Method Detail |
---|
public void render()
render
in interface
de.smartics.resteasy.hypermedia.renderer.RepresentationRenderer<T>
protected void renderAdditionalHttpHeader(javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders)
httpHeaders
- the headers to add to.
protected final void renderHttpHeaderLink(javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders, de.smartics.resteasy.hypermedia.renderer.LinkDescriptor link)
httpHeaders
- the headers to add to.
link
- the link to add.
protected abstract void httpBody()
protected abstract void close()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |