|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectURLTemplatesFactory
public class URLTemplatesFactory
Methods for configuring and retrieving the URLTemplates object.
Field Summary | |
---|---|
static String |
DEFAULT_URL_TEMPLATE_CONFIG_FILE_PATH
Default value for path from the web app to the URL templates. |
Constructor Summary | |
---|---|
URLTemplatesFactory()
|
Method Summary | |
---|---|
URLTemplates |
getTemplates(ServletContext servletContext)
Parses the URL template config file, WEB-INF/url-template-config.xml, and returns the templates. |
protected URLTemplates |
getTemplatesFromConfig(UrlTemplateConfigDocument.UrlTemplateConfig urlTemplateConfig)
Loads the templates from a parsed URL template config document. |
void |
setConfigFilePath(String configFilePath)
Allow clients to set their own URL template config file name or path. |
void |
setKnownTokens(Collection knownTokens)
Allow clients to define a set of known tokens for the template verification. |
void |
setParser(URLTemplateFileParser parser)
Allow clients to set their own parser. |
void |
setRequiredTokens(Collection requiredTokens)
Allow clients to define a set of required tokens for the template verification. |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String DEFAULT_URL_TEMPLATE_CONFIG_FILE_PATH
Constructor Detail |
---|
public URLTemplatesFactory()
Method Detail |
---|
public void setConfigFilePath(String configFilePath)
configFilePath
- An absolute path from the web app root tothe URL template config file.public void setParser(URLTemplateFileParser parser)
parser
- The parser to use on the URL template config file.public void setKnownTokens(Collection knownTokens)
knownTokens
- The set of known tokens for a valid template.public void setRequiredTokens(Collection requiredTokens)
requiredTokens
- The set of required tokens in a valid template.public URLTemplates getTemplates(ServletContext servletContext)
protected URLTemplates getTemplatesFromConfig(UrlTemplateConfigDocument.UrlTemplateConfig urlTemplateConfig)
urlTemplateConfig
- the parsed XMLBean document for the URL template config.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |