public class HTTPControllerServer extends CommandResolver
ur, VIEWERPROXY_COMMAND_NAME
NOT_FOUND
Constructor and Description |
---|
HTTPControllerServer(Controller c,
URIResolver ur)
Make a new HTTPControllerServer, which calls commands on the given controller, and forwards all other requests to
the given URIResolver.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
executeCommand(Request request,
Response response)
Handles parsing of the URL and delegating to relevant methods.
|
isCommandHostRequest, lookup, setURIResolver
public HTTPControllerServer(Controller c, URIResolver ur)
c
- The controller which handles commands given in command URLs.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 command. If the request is one of these
commands, the response code is set to 303 if page is redirected to return url; 200 if command url returns data;
otherwise whatever is returned by the wrapped resolverCopyright © 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.