Nuxeo Enterprise Platform 5.4

org.nuxeo.ecm.platform.rendering
Interface RenderingResult

All Superinterfaces:
Adaptable, java.io.Serializable
All Known Implementing Classes:
DefaultRenderingResult

public interface RenderingResult
extends Adaptable, java.io.Serializable

A rendering result is an object that wraps a rendering result and give several methods to retrieve the rendering outcome.

The default one is to expose the rendering outcome as a stream.

Specialized results may be retrieved using Adaptable.getAdapter(Class) method

Author:
Bogdan Stefanescu, Dragos Mihalache

Method Summary
 java.lang.String getFormatName()
          Gets the format name of the result.
 java.lang.Object getOutcome()
          Gets the rendering result object.
 java.io.InputStream getStream()
          Gets the rendering result as a stream.
 
Methods inherited from interface org.nuxeo.runtime.model.Adaptable
getAdapter
 

Method Detail

getFormatName

java.lang.String getFormatName()
Gets the format name of the result. This can be use to identify the type of the result. The format name can be a mime type or any application-defined format.

Returns:
the format name

getStream

java.io.InputStream getStream()
Gets the rendering result as a stream.

Returns:
the stream or null if the outcome cannot be expressed as a stream

getOutcome

java.lang.Object getOutcome()
Gets the rendering result object.

Returns:
the rendering result. must never be null

Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.