The UrlTemplate
base class has a several key properties that are inherited by the DirectUrlTemplate
and IndirectUrlTemplate
subclasses. The following list summarizes these properties. Some of the properties are described in more detail in subsequent sections.
urlTemplateFormat
The URL format used by theItemLink
servlet bean to generate page links. The format is expressed injava.text.MessageFormat
syntax, but uses parameter names instead of numbers as placeholders. See Specifying URL Formats.
maxUrlLength
The maximum number of characters in a generated URL.
supportedBrowserTypes
List of browser types supported by this template. Each entry must match the name of anatg.servlet.BrowserType
component. See Specifying Supported and Excluded Browser Types.
excludedBrowserTypes
List of browser types that are explicitly not supported by this template. Each entry must match the name of anatg.servlet.BrowserType
instance. See Specifying Supported and Excluded Browser Types.
webAppRegistry
The web application registry that contains the context paths for registered web applications.
The IndirectUrlTemplate
class has additional properties not found in the DirectUrlTemplate
class. These properties are summarized in the following list. Note that these properties are used only by the SEO jump servlet, and not by the ItemLink
servlet bean.
indirectRegex
The regular expression pattern the jump servlet uses to extract parameter values from a static request URLs. See Using Regular Expression Groups.
regexElementList
An ordered list where each list element specifies the parameter type of the corresponding regular expression element inindirectRegex
. See Using Regular Expression Groups.
forwardUrlTemplate
The URL format used by the jump servlet to generate a dynamic URL for forwarding a static request URL. Like theurlTemplate
property, this is expressed using the same syntax asjava.text.MessageFormat
, but uses parameter names instead of parameter numbers as placeholders.
useUrlRedirect
Iftrue
, the jump servlet redirects the request to a dynamic URL rather than forwarding it. Default isfalse
, which means that forwarding is used.