Interface PathConverter

    • Method Detail

      • handles

        default boolean handles​(String path,
                                String queryString)
        Return true from this method if your path converter can convert the specified path and query string. By default, the SimpleDisplayServlet will be mapped to '/display' which will be stripped off the path before being passed to this method. The first converter that returns true for a path will be used to perform the conversion.
        Parameters:
        path - the path relative to the servlet mapping
        queryString - the query string
        Returns:
        true if your path converter can handle this path
      • getPath

        default ConvertedPath getPath​(String path,
                                      String queryString)
        Returns a ConvertedPath based on the passed in path and query string.
        Parameters:
        path - the path relative to the servlet mapping
        queryString - the query string
        Returns:
        a ConvertedPath representing the path conversion