Interface WebServerConfiguration

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.util.Map<java.lang.String,​java.lang.String> getFilePaths()
      Get paths that are to be returned by the web server as individual files or directory listings.
      java.util.List<java.lang.String> getForbiddenPaths()
      Get paths that are not to be returned.
      java.util.Map<java.lang.String,​java.lang.String> getRedirectedPaths()
      Get paths that are to redirected by the web server.
    • Method Detail

      • getRedirectedPaths

        @CheckReturnValue
        @Nonnull
        java.util.Map<java.lang.String,​java.lang.String> getRedirectedPaths()
        Get paths that are to redirected by the web server.
        Returns:
        a map containing the request path as the key and the path to redirect to as the value; return an empty map if none
      • getForbiddenPaths

        @CheckReturnValue
        @Nonnull
        java.util.List<java.lang.String> getForbiddenPaths()
        Get paths that are not to be returned. Requests for paths listed here will be denied a HttpServletResponse.SC_FORBIDDEN response.
        Returns:
        a list containing the request path to be denied access to; return an empty list if none