eXo WS :: REST :: Extentions 2.3.0-GA

org.exoplatform.services.rest.ext.provider
Class XSLTStreamingOutput

java.lang.Object
  extended by 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 returned Source.

Version:
$Id: XLSTStreamingOutPut.java
Author:
Dmytro Katayev
See Also:
StreamingOutput

Constructor Summary
XSLTStreamingOutput(String schemeName, Source source)
          XSLTStreamingOutput constructor.
XSLTStreamingOutput(String schemeName, Source source, Map<String,String> xsltParams)
          XSLTStreamingOutput constructor.
 
Method Summary
 void write(OutputStream outStream)
           .
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XSLTStreamingOutput

public XSLTStreamingOutput(String schemeName,
                           Source source)
XSLTStreamingOutput constructor.

Parameters:
schemeName - XLST scheme name. Must be registered in TRAXTemplatesLoaderPlugin
source - 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 in TRAXTemplatesLoaderPlugin
source - 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:
write in interface javax.ws.rs.core.StreamingOutput
Throws:
IOException
javax.ws.rs.WebApplicationException

eXo WS :: REST :: Extentions 2.3.0-GA

Copyright © 2012 eXo Platform SAS. All Rights Reserved.