|
||||||||||
| 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(javax.ws.rs.core.Configuration configuration)
Creates an instance of DefaultTemplateProcessor. |
| Method Summary | |
|---|---|
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. |
| 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(javax.ws.rs.core.Configuration configuration)
DefaultTemplateProcessor.
configuration - non-null configuration to obtain properties from.| Method Detail |
|---|
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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||