public interface ResourceDownloadHandler
extends com.vaadin.server.Resource
Modifier and Type | Method and Description |
---|---|
boolean |
handleResourceDownload(com.vaadin.server.VaadinRequest req,
com.vaadin.server.VaadinResponse resp)
Writes the resource content to the response object.
|
boolean handleResourceDownload(com.vaadin.server.VaadinRequest req, com.vaadin.server.VaadinResponse resp) throws IOException
UIComponent#handleConnectorRequest(VaadinRequest, VaadinResponse, String)
when UIFileResource is used so that the request returns 404 error instead
of server error.
DO *not* call with Vaadin session lock - blocks until the file is downloaded by the client.req
- resp
- IOException
Copyright © 2007-2018 Whitestein Technologies. All Rights Reserved.