public class PublishedFileHandler extends Object implements RequestHandler
LegacyCommunicationManager.registerDependency(String, Class). Sending
arbitrary files from the classpath is prevented by only accepting resource
names that have explicitly been registered. Resources can currently only be
registered by including a JavaScript or StyleSheet annotation
on a Connector class.| Constructor and Description |
|---|
PublishedFileHandler() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
handleRequest(VaadinSession session,
VaadinRequest request,
VaadinResponse response)
Writes the connector resource identified by the request URI to the
response.
|
public boolean handleRequest(VaadinSession session, VaadinRequest request, VaadinResponse response) throws IOException
handleRequest in interface RequestHandlersession - The session for the requestrequest - The request to handleresponse - The response object to which a response can be written.IOException - If an IO error occurredCopyright © 2020 Vaadin Ltd. All rights reserved.