|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.jersey.server.mvc.internal.DefaultTemplateProcessor<T>
@Provider public abstract class DefaultTemplateProcessor<T>
Implementation of TemplateProcessor common to cases where a base path in template name should be used when resolving
a viewable.
| Constructor Summary | |
|---|---|
protected |
DefaultTemplateProcessor(Configuration configuration)
Creates an instance of DefaultTemplateProcessor. |
| Method Summary | |
|---|---|
protected java.lang.String |
getBasePath()
Get configured base path of this processor's templates. |
protected abstract java.util.List<java.lang.String> |
getExtensions()
Get a list of possible file extensions for this template processor. |
protected java.util.List<java.lang.String> |
getPossibleTemplateNames(java.lang.String template)
Get all possible template names which should be looked for during resolving a viewable. |
protected java.lang.String |
getTemplateName(java.lang.String template)
Get template name prefixed with the base path. |
protected void |
setBasePathFromProperty(java.lang.String basePathPropertyName)
Set the base path field of this processor using value obtained from configuration with given
basePathPropertyName. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.glassfish.jersey.server.mvc.spi.TemplateProcessor |
|---|
resolve, writeTo |
| Constructor Detail |
|---|
protected DefaultTemplateProcessor(Configuration configuration)
DefaultTemplateProcessor.
configuration - non-null configuration to obtain properties from.| Method Detail |
|---|
protected java.lang.String getBasePath()
protected java.lang.String getTemplateName(java.lang.String template)
template - template name.
protected java.util.List<java.lang.String> getPossibleTemplateNames(java.lang.String template)
viewable.
template - template name.
protected abstract java.util.List<java.lang.String> getExtensions()
template processor.
protected void setBasePathFromProperty(java.lang.String basePathPropertyName)
configuration with given
basePathPropertyName.
basePathPropertyName - name of the configuration property referencing base path in the configuration.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||