Interface URIResolver

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int NOT_FOUND
      Not HTTP response code used for unresolvable URI, i.e.
    • Field Detail

      • NOT_FOUND

        static final int NOT_FOUND
        Not HTTP response code used for unresolvable URI, i.e. not in archive.
        See Also:
        Constant Field Values
    • Method Detail

      • lookup

        int lookup​(Request request,
                   Response response)
        Do a lookup on a request and update response with the result.
        Parameters:
        request - The request to look up.
        response - The response to optionally update.
        Returns:
        The HTTP response of this value, or NOT_FOUND for URLs that cannot be resolved. If HTTP response is returned it should ALWAYS be the same code as the code set in the response object. if NOT_FOUND is returned, the response object should contain a proper error page.