public class PatchedFileUploadHandler
extends com.vaadin.server.communication.FileUploadHandler
Constructor and Description |
---|
PatchedFileUploadHandler() |
Modifier and Type | Method and Description |
---|---|
protected void |
doHandleSimpleMultipartFileUpload(com.vaadin.server.VaadinSession session,
com.vaadin.server.VaadinRequest request,
com.vaadin.server.VaadinResponse response,
com.vaadin.server.StreamVariable streamVariable,
String variableName,
com.vaadin.server.ClientConnector owner,
String boundary)
Method used to stream content from a multipart request (either from
servlet or portlet request) to given StreamVariable.
|
protected void |
sendUploadResponse(com.vaadin.server.VaadinRequest request,
com.vaadin.server.VaadinResponse response)
Closes transaction and navigates before sending upload response.
|
protected void sendUploadResponse(com.vaadin.server.VaadinRequest request, com.vaadin.server.VaadinResponse response) throws IOException
sendUploadResponse
in class com.vaadin.server.communication.FileUploadHandler
request
- response
- IOException
protected void doHandleSimpleMultipartFileUpload(com.vaadin.server.VaadinSession session, com.vaadin.server.VaadinRequest request, com.vaadin.server.VaadinResponse response, com.vaadin.server.StreamVariable streamVariable, String variableName, com.vaadin.server.ClientConnector owner, String boundary) throws IOException
This method takes care of locking the session as needed and does not assume the caller has locked the session. This allows the session to be locked only when needed and not when handling the upload data.
doHandleSimpleMultipartFileUpload
in class com.vaadin.server.communication.FileUploadHandler
session
- The session containing the stream variablerequest
- The upload requestresponse
- The upload responsestreamVariable
- The destination stream variablevariableName
- The name of the destination stream variableowner
- The owner of the stream variableboundary
- The mime boundary used in the upload requestIOException
- If there is a problem reading the request or writing the
responseCopyright © 2007-2020 Whitestein Technologies. All Rights Reserved.