@Provider public abstract class DefaultTemplateProcessor<T> extends Object implements TemplateProcessor<T>
TemplateProcessor common to cases where a base path in template name should be used when resolving
a viewable.| Modifier | Constructor and Description |
|---|---|
protected |
DefaultTemplateProcessor(javax.ws.rs.core.Configuration configuration)
Creates an instance of
DefaultTemplateProcessor. |
| Modifier and Type | Method and Description |
|---|---|
protected String |
getBasePath()
Get configured base path of this processor's templates.
|
protected abstract List<String> |
getExtensions()
Get a list of possible file extensions for this
template processor. |
protected List<String> |
getPossibleTemplateNames(String template)
Get all possible template names which should be looked for during resolving
a
viewable. |
protected String |
getTemplateName(String template)
Get template name prefixed with the base path.
|
protected void |
setBasePathFromProperty(String basePathPropertyName)
Set the base path field of this processor using value obtained from
configuration with given
basePathPropertyName. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitresolve, writeToprotected DefaultTemplateProcessor(javax.ws.rs.core.Configuration configuration)
DefaultTemplateProcessor.configuration - non-null configuration to obtain properties from.protected String getBasePath()
protected String getTemplateName(String template)
template - template name.protected List<String> getPossibleTemplateNames(String template)
viewable.template - template name.protected abstract List<String> getExtensions()
template processor.protected void setBasePathFromProperty(String basePathPropertyName)
configuration with given
basePathPropertyName.basePathPropertyName - name of the configuration property referencing base path in the configuration.Copyright © 2007-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.