public abstract class DefaultRenderingResult extends Object implements RenderingResult
Modifier and Type | Field and Description |
---|---|
protected String |
formatName |
Modifier | Constructor and Description |
---|---|
protected |
DefaultRenderingResult(String formatName)
Constructor taking a rendering result name as argument.
|
Modifier and Type | Method and Description |
---|---|
<E> E |
getAdapter(Class<E> adapter)
Returns an object which is an instance of the given class associated with this object.
|
String |
getFormatName()
Gets the format name of the result.
|
abstract Object |
getOutcome()
Gets the rendering result object.
|
InputStream |
getStream()
Gets the rendering result as a stream.
|
protected final String formatName
protected DefaultRenderingResult(String formatName)
formatName
- public String getFormatName()
RenderingResult
getFormatName
in interface RenderingResult
public abstract Object getOutcome()
RenderingResult
getOutcome
in interface RenderingResult
public InputStream getStream()
RenderingResult
getStream
in interface RenderingResult
public <E> E getAdapter(Class<E> adapter)
Adaptable
null
if no such object can be found.getAdapter
in interface Adaptable
adapter
- the adapter class to look upnull
if this object does not have an adapter for
the given classCopyright © 2015 Nuxeo SA. All rights reserved.