Interface IWebServerRequestPrinter

  • Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface IWebServerRequestPrinter
    Simple interface that can be added to interact with a URL in order to produce a very simple reply to a servlet request.
    Author:
    Christopher Mindus
    • Method Detail

      • print

        void print​(java.io.PrintWriter pw,
                   java.lang.String root,
                   java.lang.String target,
                   HttpServletRequest request,
                   HttpServletResponse response)
            throws java.io.IOException
        Print the page output.
        Parameters:
        pw - The print writer.
        root - The web server root.
        target - Target page.
        request - The request.
        response - The response.
        Throws:
        java.io.IOException - For I/O errors.