Class XSLTStreamingOutput
- java.lang.Object
-
- org.exoplatform.services.rest.ext.provider.XSLTStreamingOutput
-
- All Implemented Interfaces:
javax.ws.rs.core.StreamingOutput
public class XSLTStreamingOutput extends Object implements javax.ws.rs.core.StreamingOutput
This type should be used by resource methods when need to apply XSLT transformation for returnedSource.- Version:
- $Id: XLSTStreamingOutPut.java
- Author:
- Dmytro Katayev
- See Also:
StreamingOutput
-
-
Constructor Summary
Constructors Constructor Description XSLTStreamingOutput(String schemeName, Source source)XSLTStreamingOutput constructor.XSLTStreamingOutput(String schemeName, Source source, Map<String,String> xsltParams)XSLTStreamingOutput constructor.
-
-
-
Constructor Detail
-
XSLTStreamingOutput
public XSLTStreamingOutput(String schemeName, Source source)
XSLTStreamingOutput constructor.- Parameters:
schemeName- XLST scheme name. Must be registered inTRAXTemplatesLoaderPluginsource- entity to write into output stream.
-
XSLTStreamingOutput
public XSLTStreamingOutput(String schemeName, Source source, Map<String,String> xsltParams)
XSLTStreamingOutput constructor.- Parameters:
schemeName- XLST scheme name. Must be registered inTRAXTemplatesLoaderPluginsource- entity to write into output stream.xsltParams- XSLT parameters
-
-
Method Detail
-
write
public void write(OutputStream outStream) throws IOException, javax.ws.rs.WebApplicationException
.- Specified by:
writein interfacejavax.ws.rs.core.StreamingOutput- Throws:
IOExceptionjavax.ws.rs.WebApplicationException
-
-