com.sage.orion.sdata.servlet.accpac
Class ExportToURL

java.lang.Object
  extended by com.sage.orion.sdata.servlet.accpac.ExportToURL

public class ExportToURL
extends java.lang.Object

This is a helper class designed to export a given input stream to disk. It also returns a url that the caller can use to obtain the exported data.


Method Summary
static java.lang.String export(ApplicationContext applicationContext, AccpacResourceContext resourceContext, SDataRequest request, java.io.InputStream dataStream, java.lang.String filename)
          Exports the given stream to a file and returns a url for the user to access the export.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

export

public static java.lang.String export(ApplicationContext applicationContext,
                                      AccpacResourceContext resourceContext,
                                      SDataRequest request,
                                      java.io.InputStream dataStream,
                                      java.lang.String filename)
Exports the given stream to a file and returns a url for the user to access the export.

Parameters:
applicationContext - the caller's ApplicationContext.
resourceContext - the caller's AccpacResourceContext.
request - the caller's SDataRequest
dataStream - the data to be exported
filename - the filename to be exported
Returns:
the URL that the client may access to get the content


Copyright © 2011 Sage Software, Inc. All rights reserved.