Class FileUploadData
- java.lang.Object
-
- org.silverpeas.core.webapi.upload.FileUploadData
-
public class FileUploadData extends Object
- Author:
- Yohann Chastagnier
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FileUploadData
from(javax.servlet.http.HttpServletRequest request)
Initializes an instance from the request directly.static FileUploadData
from(UploadedRequestFile uploadedRequestFile)
Initializes an instance fromUploadedRequestFile
.String
getComponentInstanceId()
String
getFullPath()
String
getName()
String
getUploadSessionId()
-
-
-
Method Detail
-
getUploadSessionId
public String getUploadSessionId()
-
getFullPath
public String getFullPath()
-
getName
public String getName()
-
getComponentInstanceId
public String getComponentInstanceId()
-
from
public static FileUploadData from(javax.servlet.http.HttpServletRequest request) throws UnsupportedEncodingException
Initializes an instance from the request directly. (OCTET STREAM UPLOAD)- Parameters:
request
- the current http request.- Returns:
- a new initialized instance.
- Throws:
UnsupportedEncodingException
- on encoding error.
-
from
public static FileUploadData from(UploadedRequestFile uploadedRequestFile)
Initializes an instance fromUploadedRequestFile
. (FormData)- Parameters:
uploadedRequestFile
- the upload file that represents the form data.- Returns:
- a new initialized instance.
-
-