|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectFactory
URLTemplatesFactory
DefaultURLTemplatesFactory
public class DefaultURLTemplatesFactory
Methods for configuring and retrieving the URLTemplate object.
Field Summary |
---|
Constructor Summary | |
---|---|
DefaultURLTemplatesFactory()
|
Method Summary | |
---|---|
String |
getTemplateNameByRef(String refGroupName,
String key)
Returns URL template name of the given type (by key) from the desired reference group. |
URLTemplate |
getURLTemplate(String name)
Returns URL template given the name of the template. |
void |
load(ServletContext servletContext)
Initialization method that parses the URL template config file to get the URL templates and template reference groups. |
Methods inherited from class URLTemplatesFactory |
---|
getURLTemplatesFactory, initServletContext, setConfigFilePath, setKnownTokens, setRequiredTokens |
Methods inherited from class Factory |
---|
getConfig, getServletContext, onCreate, reinit |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultURLTemplatesFactory()
Method Detail |
---|
public URLTemplate getURLTemplate(String name)
getURLTemplate
in class URLTemplatesFactory
name
- name of the template
public String getTemplateNameByRef(String refGroupName, String key)
getTemplateNameByRef
in class URLTemplatesFactory
refGroupName
- name of a group of templates from the config file.key
- type of the template
public void load(ServletContext servletContext)
load
in class URLTemplatesFactory
servletContext
- the current ServletContext.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |