|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.webmethods.caf.faces.data.attachments.LocalTempAttachmentsProvider
public class LocalTempAttachmentsProvider
Attachment Provider that stores the temp files in a temp folder on the MWS server. The attachments provided are not URL addressable so you can not click the link to get them from the list.
Nested Class Summary | |
---|---|
static class |
LocalTempAttachmentsProvider.FileItemImpl
|
static class |
LocalTempAttachmentsProvider.TempAttachmentItem
|
Field Summary | |
---|---|
protected File |
fTempFolder
|
Constructor Summary | |
---|---|
LocalTempAttachmentsProvider()
|
Method Summary | |
---|---|
void |
addAttachment(FileItem fileItem,
String encoding)
Add Attachment |
protected void |
finalize()
|
boolean |
getHasAttachments()
Returns whether the attachment provider has any attachments |
protected File |
getTempFolder()
|
boolean |
isAddAttachmentsAvailable()
Returns whether attachments can be added |
List |
listAttachments()
Returns a list of the current attachments |
void |
removeAttachment(String attachmentID)
Remove Attachment |
void |
updateAttachment(String attachmentID,
FileItem fileItem,
String encoding)
Update an Attachment |
void |
valueBound(HttpSessionBindingEvent arg0)
|
void |
valueUnbound(HttpSessionBindingEvent arg0)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected File fTempFolder
Constructor Detail |
---|
public LocalTempAttachmentsProvider()
Method Detail |
---|
protected File getTempFolder()
public void valueBound(HttpSessionBindingEvent arg0)
public void valueUnbound(HttpSessionBindingEvent arg0)
protected void finalize() throws Throwable
finalize
in class Object
Throwable
public boolean isAddAttachmentsAvailable()
IAttachmentsProvider
isAddAttachmentsAvailable
in interface IAttachmentsProvider
public boolean getHasAttachments()
IAttachmentsProvider
getHasAttachments
in interface IAttachmentsProvider
public void addAttachment(FileItem fileItem, String encoding)
IAttachmentsProvider
addAttachment
in interface IAttachmentsProvider
fileItem
- the attachment contentencoding
- the encoding of the attachment file (if known)public List listAttachments()
IAttachmentsProvider
listAttachments
in interface IAttachmentsProvider
public void removeAttachment(String attachmentID)
IAttachmentsProvider
removeAttachment
in interface IAttachmentsProvider
attachmentID
- the id of the attachment to removepublic void updateAttachment(String attachmentID, FileItem fileItem, String encoding)
IAttachmentsProvider
updateAttachment
in interface IAttachmentsProvider
attachmentID
- the id of the attachment to updatefileItem
- the new attachment contentencoding
- the encoding of the attachment file (if known)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |