|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.webmethods.caf.jcr.faces.bean.JcrFileVersionExportBean
public class JcrFileVersionExportBean
Handles the export of a version of a jcr file.
Field Summary | |
---|---|
protected Node |
fileNode
Holds the file Node to export |
Fields inherited from interface com.webmethods.caf.faces.bean.IFileExportBean |
---|
UNKNOWN_CONTENT_LENGTH |
Constructor Summary | |
---|---|
JcrFileVersionExportBean(Node fileNode,
boolean forceDownload)
Constructor |
Method Summary | |
---|---|
String |
getExportCharacterEncoding()
Returns character encoding for this export file content (valid only when isExportBinary() == false) |
int |
getExportContentLength()
Return the length of the content that is to be exported. |
String |
getExportContentType()
Gets the content type of the response being sent to the client. |
String |
getExportFileName()
Return the file name for the exported data |
boolean |
isDownloadForced()
Return true to send the response headers that will force the user to choose what to do with the file (Open vs. |
boolean |
isExportBinary()
Return true if the export will be sending binary data to the response, false if the export will be sending text. |
void |
writeExportBytes(OutputStream outStream)
Invoked to allow the bean to write binary data to the output stream. |
void |
writeExportText(PrintWriter writer)
Invoked to allow the bean to write the export text to the output writer. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Node fileNode
Constructor Detail |
---|
public JcrFileVersionExportBean(Node fileNode, boolean forceDownload) throws RepositoryException
fileNode
- the JCR version node to exportforceDownload
- if true, forces a prompt to the end user to ask if they want to save or open
RepositoryException
Method Detail |
---|
public String getExportCharacterEncoding()
IFileExportBeanEx
getExportCharacterEncoding
in interface IFileExportBeanEx
public int getExportContentLength()
IFileExportBean
getExportContentLength
in interface IFileExportBean
IFileExportBean.UNKNOWN_CONTENT_LENGTH
if it is not knownpublic String getExportContentType()
IFileExportBean
getExportContentType
in interface IFileExportBean
public String getExportFileName()
IFileExportBean
getExportFileName
in interface IFileExportBean
public boolean isDownloadForced()
IFileExportBean
isDownloadForced
in interface IFileExportBean
public boolean isExportBinary()
IFileExportBean
isExportBinary
in interface IFileExportBean
public void writeExportBytes(OutputStream outStream) throws IOException
IFileExportBean
writeExportBytes
in interface IFileExportBean
outStream
- the output stream
IOException
- thrown if there is an I/O exception during the exportpublic void writeExportText(PrintWriter writer)
IFileExportBean
writeExportText
in interface IFileExportBean
writer
- the output writer
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |