com.vaadin.server.communication.

Class PublishedFileHandler

    • Constructor Detail

      • PublishedFileHandler

        public PublishedFileHandler()
    • Method Detail

      • handleRequest

        public boolean handleRequest​(VaadinSession session,
                                     VaadinRequest request,
                                     VaadinResponse response)
                              throws IOException

        Writes the connector resource identified by the request URI to the response. If a published resource corresponding to the URI path is not found, writes a HTTP Not Found error to the response.

        Specified by:

        handleRequest in interface RequestHandler

        Parameters:

        session - The session for the request

        request - The request to handle

        response - The response object to which a response can be written.

        Returns:

        true if a response has been written and no further request handlers should be called, otherwise false

        Throws:

        IOException - If an IO error occurred