public class GeneratorStreamingOutput extends Object
Constructor and Description |
---|
GeneratorStreamingOutput(org.pentaho.platform.api.engine.IContentGenerator contentGenerator,
ContentGeneratorDescriptor desc,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
List<javax.ws.rs.core.MediaType> acceptableMediaTypes,
org.pentaho.platform.api.repository2.unified.RepositoryFile file,
String command)
Invokes a content generator to produce some content either in the context of a repository file, or in the form of a
direct service call (no repository file in view).
|
Modifier and Type | Method and Description |
---|---|
String |
getMimeType() |
void |
setMimeType(String mimeType) |
void |
write(OutputStream output,
GeneratorStreamingOutputProvider.MimeTypeCallback callback) |
public GeneratorStreamingOutput(org.pentaho.platform.api.engine.IContentGenerator contentGenerator, ContentGeneratorDescriptor desc, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, List<javax.ws.rs.core.MediaType> acceptableMediaTypes, org.pentaho.platform.api.repository2.unified.RepositoryFile file, String command)
contentGenerator
- the content generator to invokeContentGeneratorDescriptor
- a descriptor detailing info about the content generatorrequest
- the HTTP requestresponse
- the HTTP responseproducesMimeType
- the requested return type of the output (can be null if none is preferred)file
- the repository file being rendered (can be null if a repository file does not apply)command
- the trailing part of the URL path of the request, typically used as a command sequence (can be null)public void write(OutputStream output, GeneratorStreamingOutputProvider.MimeTypeCallback callback) throws IOException
IOException
public String getMimeType()
public void setMimeType(String mimeType)