/** * <p> * Returns the (optional) suffix to be added to all template names in order * to convert <i>template names</i> into <i>resource names</i>. * </p> * * @return the suffix. */ public final String getSuffix() { checkInitialized(); return this.suffix; }
/** * <p> * Returns the <i>pattern spec</i> specified for establishing the VALIDXHTML (validated XHTML) * template mode to resolved templates. * </p> * * @return the pattern spec */ public final PatternSpec getValidXhtmlTemplateModePatternSpec() { checkInitialized(); return this.validXhtmlTemplateModePatternSpec; }
/** * <p> * Returns the <i>pattern spec</i> specified for establishing the LEGACYHTML5 (non-XML-formed HTML5 that needs HTML-to-XML conversion) * template mode to resolved templates. * </p> * * @return the pattern spec */ public final PatternSpec getLegacyHtml5TemplateModePatternSpec() { checkInitialized(); return this.legacyHtml5TemplateModePatternSpec; }
/** * <p> * Returns the <i>pattern spec</i> specified for establishing the HTML5 (correct, XML-formed HTML5) * template mode to resolved templates. * </p> * * @return the pattern spec */ public final PatternSpec getHtml5TemplateModePatternSpec() { checkInitialized(); return this.html5TemplateModePatternSpec; }
/** * <p> * Returns the Resource Resolver (implementation of {@link IResourceResolver}) that will * be used to resolve the <i>resource names</i> that are assigned to templates resolved * by this template resolver. * </p> * * @return the resource resolver */ public IResourceResolver getResourceResolver() { checkInitialized(); return this.resourceResolver; }
/** * <p> * Returns the (optional) prefix to be added to all template names in order * to convert <i>template names</i> into <i>resource names</i>. * </p> * * @return the prefix. */ public final String getPrefix() { checkInitialized(); return this.prefix; }
/** * <p> * Returns the character encoding to be used for reading template resources * resolved by this template resolver. * </p> * * @return the character encoding. */ public final String getCharacterEncoding() { checkInitialized(); return this.characterEncoding; }
/** * <p> * Returns the <i>pattern spec</i> specified for establishing the XML * template mode to resolved templates. * </p> * * @return the pattern spec */ public final PatternSpec getXmlTemplateModePatternSpec() { checkInitialized(); return this.xmlTemplateModePatternSpec; }
/** * <p> * Returns the <i>pattern spec</i> specified for establishing the VALIDXML (validated XML) * template mode to resolved templates. * </p> * * @return the pattern spec */ public final PatternSpec getValidXmlTemplateModePatternSpec() { checkInitialized(); return this.validXmlTemplateModePatternSpec; }
/** * <p> * Returns the <i>pattern spec</i> specified for establishing the XHTML * template mode to resolved templates. * </p> * * @return the pattern spec */ public final PatternSpec getXhtmlTemplateModePatternSpec() { checkInitialized(); return this.xhtmlTemplateModePatternSpec; }
/** * <p> * Returns the <i>pattern spec</i> specified for establishing which * templates have to be considered <i>cacheable</i>. * </p> * <p> * These patterns have higher precedence than the <i>cacheable</i> * flag (see {@link #setCacheable(boolean)}). Such flag can be considered * a <i>default value</i> after <i>cacheable patterns</i> and * <i>non-cacheable patterns</i> have been applied. * </p> * * @return the pattern spec */ public final PatternSpec getCacheablePatternSpec() { checkInitialized(); return this.cacheablePatternSpec; }
/** * <p> * Returns the template mode to be applied to templates resolved by * this template resolver. * </p> * <p> * If <i>template mode patterns</i> (see {@link #setXhtmlTemplateModePatterns(Set)}, * {@link #setHtml5TemplateModePatterns(Set)}, etc.) are also set, they have higher * priority than the template mode set here (this would act as a <i>default</i>). * </p> * * @return the template mode to be used. */ public final String getTemplateMode() { checkInitialized(); return this.templateMode; }
/** * <p> * Returns the TTL (Time To Live) in cache of templates resolved by this * resolver. * </p> * <p> * If a template is resolved as <i>cacheable</i> but cache TTL is null, * this means the template will live in cache until evicted by LRU * (Least Recently Used) algorithm for being the oldest entry in cache. * </p> * * @return the cache TTL for resolved templates. */ public final Long getCacheTTLMs() { checkInitialized(); return this.cacheTTLMs; }
/** * <p> * Returns the currently configured template aliases. * </p> * <p> * Template aliases allow the use of several (and probably shorter) * names for templates. * </p> * <p> * Aliases are applied to template names <b>before</b> prefix/suffix. * </p> * * @return the map of template aliases. */ public final Map<String, String> getTemplateAliases() { checkInitialized(); return Collections.unmodifiableMap(this.templateAliases); }
/** * <p> * Returns the <i>patterns</i> specified for establishing the XML * template mode to resolved templates. * </p> * <p> * This is a convenience method equivalent to {@link #getXmlTemplateModePatternSpec()}.getPatterns() * </p> * * @return the pattern spec */ public final Set<String> getXmlTemplateModePatterns() { checkInitialized(); return this.xmlTemplateModePatternSpec.getPatterns(); }
/** * <p> * Returns the <i>patterns</i> specified for establishing the LEGACYHTML5 (non-XML-formed HTML5 that needs HTML-to-XML conversion) * template mode to resolved templates. * </p> * <p> * This is a convenience method equivalent to {@link #getLegacyHtml5TemplateModePatternSpec()}.getPatterns() * </p> * * @return the pattern spec */ public final Set<String> getLegacyHtml5TemplateModePatterns() { checkInitialized(); return this.legacyHtml5TemplateModePatternSpec.getPatterns(); }
/** * <p> * Returns the <i>patterns</i> specified for establishing the VALIDXML (validated XML) * template mode to resolved templates. * </p> * <p> * This is a convenience method equivalent to {@link #getValidXmlTemplateModePatternSpec()}.getPatterns() * </p> * * @return the pattern spec */ public final Set<String> getValidXmlTemplateModePatterns() { checkInitialized(); return this.validXmlTemplateModePatternSpec.getPatterns(); }
/** * <p> * Returns the <i>patterns</i> specified for establishing the XHTML * template mode to resolved templates. * </p> * <p> * This is a convenience method equivalent to {@link #getXhtmlTemplateModePatternSpec()}.getPatterns() * </p> * * @return the pattern spec */ public final Set<String> getXhtmlTemplateModePatterns() { checkInitialized(); return this.xhtmlTemplateModePatternSpec.getPatterns(); }
/** * <p> * Returns the <i>patterns</i> specified for establishing the VALIDXHTML (validated XHTML) * template mode to resolved templates. * </p> * <p> * This is a convenience method equivalent to {@link #getValidXhtmlTemplateModePatternSpec()}.getPatterns() * </p> * * @return the pattern spec */ public final Set<String> getValidXhtmlTemplateModePatterns() { checkInitialized(); return this.validXhtmlTemplateModePatternSpec.getPatterns(); }
/** * <p> * Returns the <i>patterns</i> specified for establishing the HTML5 (correct, XML-formed HTML5) * template mode to resolved templates. * </p> * <p> * This is a convenience method equivalent to {@link #getHtml5TemplateModePatternSpec()}.getPatterns() * </p> * * @return the pattern spec */ public final Set<String> getHtml5TemplateModePatterns() { checkInitialized(); return this.html5TemplateModePatternSpec.getPatterns(); }