public class UnknownCommandResolver extends CommandResolver
ur, VIEWERPROXY_COMMAND_NAME
NOT_FOUND
Constructor and Description |
---|
UnknownCommandResolver(URIResolver ur)
Make a new UnknownCommandResolver, which gives an error for any command- like URL and forwards other URLs to the
given URIResolver.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
executeCommand(Request request,
Response response)
Helper method that checks if this is a command URL and throw an error if it is.
|
isCommandHostRequest, lookup, setURIResolver
public UnknownCommandResolver(URIResolver ur)
ur
- The URIResolver to handle all other uris.ArgumentNotValid
- if either argument is null.protected boolean executeCommand(Request request, Response response)
executeCommand
in class CommandResolver
request
- The request to checkresponse
- The response to give command results to if it is a commandCopyright © 2005–2016 The Royal Danish Library, the Danish State and University Library, the National Library of France and the Austrian National Library.. All rights reserved.