|
|||||||||
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.
Constructor Summary | |
---|---|
URLTemplatesFactory()
|
Method Summary | |
---|---|
static URLTemplates |
getTemplates(ServletContext servletContext)
Parses the URL template config file, WEB-INF/url-template-config.xml, and returns the templates. |
protected static URLTemplates |
getTemplatesFromConfig(UrlTemplateConfigDocument.UrlTemplateConfig urlTemplateConfig)
Loads the templates from a parsed URL template config document. |
static void |
setKnownTokens(Collection<String> knownTokens)
Allow clients to define a set of known tokens for the template verification. |
static void |
setParser(URLTemplateFileParser parser)
Allow clients to set their own parser. |
static void |
setRequiredTokens(Collection<String> 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 |
Constructor Detail |
---|
public URLTemplatesFactory()
Method Detail |
---|
public static void setParser(URLTemplateFileParser parser)
parser
- The parser to use on the URL template config file.public static void setKnownTokens(Collection<String> knownTokens)
knownTokens
- The set of known tokens for a valid template.public static void setRequiredTokens(Collection<String> requiredTokens)
requiredTokens
- The set of required tokens in a valid template.public static URLTemplates getTemplates(ServletContext servletContext) throws ServletException
ServletException
protected static 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 |