nl.pbemengine.engine.ng.base.webserver
Class WebRepository
java.lang.Object
nl.pbemengine.engine.ng.base.webserver.WebRepository
public class WebRepository
- extends java.lang.Object
A storage class for web objects - which are either actions to be performed
by the server, or files to be sent directly to the requester.
- Author:
- Jeroen Steenbeeke
|
Method Summary |
void |
addContextPath(Ruleset rules,
freemarker.cache.TemplateLoader loader,
ResourceFetcher fetcher)
Scans a Ruleset class for web configuration items, creates a matching
ContextPathHandler object, and adds it to the current context path
configuration |
void |
baseConfiguration()
Initiates the WebRepository configuration for the root path |
ContextPathHandler |
getHandlerByRulesetName(java.lang.String rulesetName)
Obtain a context path handler by supplying a Ruleset name. |
Content |
handleRequest(java.lang.String uri,
java.util.Map<java.lang.String,java.lang.String> getvars,
java.util.Map<java.lang.String,java.lang.String> postvars,
java.util.Map<java.lang.String,java.lang.String> cookies)
|
void |
installerConfiguration()
|
void |
setCallback(WebserverCallback callback)
|
void |
setServer(WebServer server)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WEBBASEDIR
public static final java.lang.String WEBBASEDIR
- See Also:
- Constant Field Values
ACTIONPACKAGE
public static final java.lang.String ACTIONPACKAGE
- See Also:
- Constant Field Values
WebRepository
public WebRepository()
setCallback
public void setCallback(WebserverCallback callback)
setServer
public void setServer(WebServer server)
baseConfiguration
public void baseConfiguration()
- Initiates the WebRepository configuration for the root path
installerConfiguration
public void installerConfiguration()
getHandlerByRulesetName
public ContextPathHandler getHandlerByRulesetName(java.lang.String rulesetName)
- Obtain a context path handler by supplying a Ruleset name. Called by
IndexResultAction
- Parameters:
rulesetName - The Ruleset name to match. Supply empty to get root
- Returns:
- A ContextPathHandler
handleRequest
public Content handleRequest(java.lang.String uri,
java.util.Map<java.lang.String,java.lang.String> getvars,
java.util.Map<java.lang.String,java.lang.String> postvars,
java.util.Map<java.lang.String,java.lang.String> cookies)
addContextPath
public void addContextPath(Ruleset rules,
freemarker.cache.TemplateLoader loader,
ResourceFetcher fetcher)
- Scans a Ruleset class for web configuration items, creates a matching
ContextPathHandler object, and adds it to the current context path
configuration
- Parameters:
rules - The ruleset we are analysingloader - The URLTemplateLoader for this rulesetfetcher - The ResourceFetcher for this Ruleset
Copyright © 2008. All Rights Reserved.