com.stimulsoft.web.helper
Class StiWebActionResult

java.lang.Object
  extended by com.stimulsoft.web.helper.StiWebActionResult

public class StiWebActionResult
extends java.lang.Object

Copyright Stimulsoft


Constructor Summary
StiWebActionResult()
           
StiWebActionResult(byte[] binaryData, java.lang.String contentType)
           
StiWebActionResult(byte[] binaryData, java.lang.String fileName, java.lang.String contentType)
           
StiWebActionResult(byte[] binaryData, java.lang.String fileName, java.lang.String contentType, boolean saveFileDialog)
           
StiWebActionResult(byte[] binaryData, java.lang.String fileName, java.lang.String contentType, boolean saveFileDialog, boolean enableBrowserCache)
           
StiWebActionResult(java.io.ByteArrayOutputStream stream, java.lang.String fileName, java.lang.String contentType)
           
StiWebActionResult(java.io.ByteArrayOutputStream stream, java.lang.String fileName, java.lang.String contentType, boolean saveFileDialog)
           
StiWebActionResult(java.lang.String data)
           
StiWebActionResult(java.lang.String data, java.lang.String contentType)
           
StiWebActionResult(java.lang.String data, java.lang.String contentType, java.lang.String fileName)
           
 
Method Summary
static StiWebActionResult emptyReportResult()
           
static StiWebActionResult errorResult(StiRequestParams requestParams, java.lang.String data)
           
 java.lang.String getContentType()
           
 byte[] getData()
           
 java.lang.String getFileName()
           
 boolean isEnableBrowserCache()
           
 boolean isSaveFileDialog()
           
static StiWebActionResult jsonResult(StiRequestParams requestParams, java.util.HashMap<java.lang.String,java.lang.Object> data)
           
static StiWebActionResult packedResult(java.lang.String data)
           
 void setData(byte[] binaryData)
           
 void setEnableBrowserCache(boolean enableBrowserCache)
           
 void setFileName(java.lang.String fileName)
           
 void setSaveFileDialog(boolean saveFileDialog)
           
static StiWebActionResult stringResult(StiRequestParams requestParams, java.lang.String data)
           
 void writeFile(javax.servlet.http.HttpServletResponse response)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StiWebActionResult

public StiWebActionResult()
                   throws java.io.UnsupportedEncodingException
Throws:
java.io.UnsupportedEncodingException

StiWebActionResult

public StiWebActionResult(java.lang.String data)
                   throws java.io.UnsupportedEncodingException
Throws:
java.io.UnsupportedEncodingException

StiWebActionResult

public StiWebActionResult(java.lang.String data,
                          java.lang.String contentType)
                   throws java.io.UnsupportedEncodingException
Throws:
java.io.UnsupportedEncodingException

StiWebActionResult

public StiWebActionResult(java.lang.String data,
                          java.lang.String contentType,
                          java.lang.String fileName)
                   throws java.io.UnsupportedEncodingException
Throws:
java.io.UnsupportedEncodingException

StiWebActionResult

public StiWebActionResult(java.io.ByteArrayOutputStream stream,
                          java.lang.String fileName,
                          java.lang.String contentType)
                   throws java.io.IOException
Throws:
java.io.IOException

StiWebActionResult

public StiWebActionResult(java.io.ByteArrayOutputStream stream,
                          java.lang.String fileName,
                          java.lang.String contentType,
                          boolean saveFileDialog)
                   throws java.io.IOException
Throws:
java.io.IOException

StiWebActionResult

public StiWebActionResult(byte[] binaryData,
                          java.lang.String fileName,
                          java.lang.String contentType)

StiWebActionResult

public StiWebActionResult(byte[] binaryData,
                          java.lang.String contentType)

StiWebActionResult

public StiWebActionResult(byte[] binaryData,
                          java.lang.String fileName,
                          java.lang.String contentType,
                          boolean saveFileDialog)

StiWebActionResult

public StiWebActionResult(byte[] binaryData,
                          java.lang.String fileName,
                          java.lang.String contentType,
                          boolean saveFileDialog,
                          boolean enableBrowserCache)
Method Detail

stringResult

public static StiWebActionResult stringResult(StiRequestParams requestParams,
                                              java.lang.String data)
                                       throws java.io.UnsupportedEncodingException
Throws:
java.io.UnsupportedEncodingException

jsonResult

public static StiWebActionResult jsonResult(StiRequestParams requestParams,
                                            java.util.HashMap<java.lang.String,java.lang.Object> data)
                                     throws java.io.UnsupportedEncodingException
Throws:
java.io.UnsupportedEncodingException

errorResult

public static StiWebActionResult errorResult(StiRequestParams requestParams,
                                             java.lang.String data)
                                      throws java.io.UnsupportedEncodingException
Throws:
java.io.UnsupportedEncodingException

packedResult

public static StiWebActionResult packedResult(java.lang.String data)
                                       throws java.io.UnsupportedEncodingException,
                                              java.io.IOException
Throws:
java.io.UnsupportedEncodingException
java.io.IOException

emptyReportResult

public static StiWebActionResult emptyReportResult()
                                            throws java.io.UnsupportedEncodingException
Throws:
java.io.UnsupportedEncodingException

writeFile

public void writeFile(javax.servlet.http.HttpServletResponse response)
               throws java.io.IOException
Throws:
java.io.IOException

getFileName

public java.lang.String getFileName()
Returns:
the fileName

setFileName

public void setFileName(java.lang.String fileName)
Parameters:
fileName - the fileName to set

getData

public byte[] getData()
Returns:
the binaryData

setData

public void setData(byte[] binaryData)
Parameters:
binaryData - the binaryData to set

isSaveFileDialog

public boolean isSaveFileDialog()
Returns:
the saveFileDialog

setSaveFileDialog

public void setSaveFileDialog(boolean saveFileDialog)
Parameters:
saveFileDialog - the saveFileDialog to set

getContentType

public java.lang.String getContentType()
Returns:
the contentType

isEnableBrowserCache

public boolean isEnableBrowserCache()
Returns:
the enableBrowserCache

setEnableBrowserCache

public void setEnableBrowserCache(boolean enableBrowserCache)
Parameters:
enableBrowserCache - the enableBrowserCache to set