Package com.stimulsoft.web.helper
Class StiWebActionResult
java.lang.Object
com.stimulsoft.web.helper.StiWebActionResult
Copyright Stimulsoft
-
Constructor Summary
ConstructorsConstructorDescriptionStiWebActionResult(byte[] binaryData, String contentType) StiWebActionResult(byte[] binaryData, String fileName, String contentType) StiWebActionResult(byte[] binaryData, String fileName, String contentType, boolean showSaveFileDialog) StiWebActionResult(byte[] binaryData, String fileName, String contentType, boolean showSaveFileDialog, boolean enableBrowserCache) StiWebActionResult(ByteArrayOutputStream stream, String fileName, String contentType) StiWebActionResult(ByteArrayOutputStream stream, String fileName, String contentType, boolean saveFileDialog) StiWebActionResult(String data) StiWebActionResult(String data, String contentType) StiWebActionResult(String data, String fileName, String contentType) -
Method Summary
Modifier and TypeMethodDescriptionstatic StiWebActionResultdashboardNotSupportedResult(StiRequestParams requestParams) static StiWebActionResultstatic StiWebActionResulterrorResult(StiRequestParams requestParams, String data) byte[]getData()booleanstatic StiWebActionResultjsonResult(StiRequestParams requestParams, HashMap<String, Object> data) static StiWebActionResultpackedResult(String data) voidsetData(byte[] binaryData) voidsetEnableBrowserCache(boolean enableBrowserCache) voidsetFileName(String fileName) static StiWebActionResultstringResult(StiRequestParams requestParams, String data) voidwriteFile(StiHttpServletResponse response)
-
Constructor Details
-
StiWebActionResult
- Throws:
UnsupportedEncodingException
-
StiWebActionResult
- Throws:
UnsupportedEncodingException
-
StiWebActionResult
- Throws:
UnsupportedEncodingException
-
StiWebActionResult
public StiWebActionResult(String data, String fileName, String contentType) throws UnsupportedEncodingException - Throws:
UnsupportedEncodingException
-
StiWebActionResult
public StiWebActionResult(ByteArrayOutputStream stream, String fileName, String contentType) throws IOException - Throws:
IOException
-
StiWebActionResult
public StiWebActionResult(ByteArrayOutputStream stream, String fileName, String contentType, boolean saveFileDialog) throws IOException - Throws:
IOException
-
StiWebActionResult
-
StiWebActionResult
-
StiWebActionResult
-
StiWebActionResult
-
-
Method Details
-
stringResult
public static StiWebActionResult stringResult(StiRequestParams requestParams, String data) throws UnsupportedEncodingException - Throws:
UnsupportedEncodingException
-
jsonResult
public static StiWebActionResult jsonResult(StiRequestParams requestParams, HashMap<String, Object> data) throws UnsupportedEncodingException- Throws:
UnsupportedEncodingException
-
dashboardNotSupportedResult
public static StiWebActionResult dashboardNotSupportedResult(StiRequestParams requestParams) throws UnsupportedEncodingException - Throws:
UnsupportedEncodingException
-
errorResult
public static StiWebActionResult errorResult(StiRequestParams requestParams, String data) throws UnsupportedEncodingException - Throws:
UnsupportedEncodingException
-
packedResult
public static StiWebActionResult packedResult(String data) throws UnsupportedEncodingException, IOException -
emptyReportResult
- Throws:
UnsupportedEncodingException
-
writeFile
- Throws:
IOException
-
getFileName
- Returns:
- the fileName
-
setFileName
- 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
-
getContentType
- Returns:
- the contentType
-
isEnableBrowserCache
public boolean isEnableBrowserCache()- Returns:
- the enableBrowserCache
-
setEnableBrowserCache
public void setEnableBrowserCache(boolean enableBrowserCache) - Parameters:
enableBrowserCache- the enableBrowserCache to set
-