Class FileUploadedRequest
- java.lang.Object
-
- de.xima.fc.gui.bean.designer.request.FileUploadedRequest
-
- All Implemented Interfaces:
IDesignerConversationRequest<Serializable>
,ICrossViewScopeRequest<Serializable>
,Serializable
public final class FileUploadedRequest extends Object
When a plain file was uploaded. Opening a file upload must be done synchronously in the frame where the user clicked.- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FileUploadedRequest(EContentView contentView, EDesignerUploadFileSource fileSource, String fileName, byte[] fileContent, String contentType)
A new POJO with the given data.FileUploadedRequest(String sourceTabId, EDesignerUploadFileSource fileSource, String fileName, byte[] fileContent, String contentType)
A new POJO with the given data.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getContentType()
byte[]
getFileContent()
String
getFileName()
EDesignerUploadFileSource
getFileSource()
Class<? extends Serializable>
getResponseType()
String
getSourceTabId()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.xima.fc.gui.bean.designer.request.IDesignerConversationRequest
getSourceTabView
-
-
-
-
Constructor Detail
-
FileUploadedRequest
public FileUploadedRequest(EContentView contentView, EDesignerUploadFileSource fileSource, String fileName, byte[] fileContent, String contentType)
A new POJO with the given data.- Parameters:
contentView
- Content view whoseEContentView.getId()
will be returned byIDesignerConversationRequest.getSourceTabId()
.fileSource
- Value returned bygetFileSource()
.fileName
- Value returned bygetFileName()
.fileContent
- Value returned bygetFileContent()
.contentType
- Value returned bygetContentType()
.
-
FileUploadedRequest
public FileUploadedRequest(String sourceTabId, EDesignerUploadFileSource fileSource, String fileName, byte[] fileContent, String contentType)
A new POJO with the given data.- Parameters:
sourceTabId
- Value returned byIDesignerConversationRequest.getSourceTabId()
.fileSource
- Value returned bygetFileSource()
.fileName
- Value returned bygetFileName()
.fileContent
- Value returned bygetFileContent()
.contentType
- Value returned bygetContentType()
.
-
-
Method Detail
-
getContentType
public String getContentType()
- Returns:
- The content of the file.
-
getFileContent
public byte[] getFileContent()
- Returns:
- The content of the file.
-
getFileName
public String getFileName()
- Returns:
- The name of the uploaded file.
-
getFileSource
public EDesignerUploadFileSource getFileSource()
- Returns:
- The source where the file was uploaded, indicating what should be done with the file.
-
getResponseType
public Class<? extends Serializable> getResponseType()
- Returns:
- Type of the requested data.
-
getSourceTabId
public String getSourceTabId()
- Specified by:
getSourceTabId
in interfaceIDesignerConversationRequest<T extends Serializable>
- Returns:
- ID of the tab (see
TabModel.getId()
) that issued the event. Empty string if the event was issued by the designer parent frame.
-
-