Package dk.netarkivet.viewerproxy
Interface URIResolver
-
- All Known Implementing Classes:
ARCArchiveAccess
,CommandResolver
,GetDataResolver
,HTTPControllerServer
,NotifyingURIResolver
,UnknownCommandResolver
public interface URIResolver
Interface for all classes that may resolve requests and update response with result.
-
-
Field Summary
Fields Modifier and Type Field Description static int
NOT_FOUND
Not HTTP response code used for unresolvable URI, i.e.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
lookup(Request request, Response response)
Do a lookup on a request and update response with the result.
-
-
-
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.
-
-