|
EchoPoint API - 3.0.0b5 App Webcontainer |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectechopoint.template.AbstractTemplateDataSource
public abstract class AbstractTemplateDataSource
A base class for TemplateDataSource implementations.
Its uses a SimpleTemplateCachingHints object as its TemplateCachingHints implementation.
| Field Summary | |
|---|---|
static String |
DEFAULT_CONTENT_TYPE
the default encoding is text/xhtml |
static String |
DEFAULT_ENCODING
the default encoding is iso-8859-1 |
| Constructor Summary | |
|---|---|
AbstractTemplateDataSource()
AbstractTemplateDataSource constructor with default encoding. |
|
AbstractTemplateDataSource(String encoding)
AbstractTemplateDataSource constructor with encoding. |
|
| Method Summary | |
|---|---|
TemplateCachingHints |
getCachingHints()
This returns a hint to the template rendering mechanism as to whether this template data can be cached. |
String |
getCharacterEncoding()
This returns the character encoding of the TemplateDataSource. |
TemplateCompilerHints |
getCompilerHints()
This returns a hint to the underlying template compiler mechanism as to how the template data should be compiled into XHTML. |
String |
getContentType()
This content type of the template data is used by the rendering framework to find an appropriate template compiler. |
void |
setCachingHints(TemplateCachingHints newValue)
Sets the caching hints to use for this template data source |
void |
setCharacterEncoding(String newEncoding)
Sets the character encoding to be used with this TemplateDataSource |
void |
setCompilerHints(TemplateCompilerHints compilerHints)
Sets the TemplateCompilerHints to use for this
TemplateDataSource. |
void |
setContentType(String contentType)
Sets the content type of the template data |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface echopoint.template.TemplateDataSource |
|---|
getCanonicalName, getInputStream |
| Field Detail |
|---|
public static String DEFAULT_ENCODING
public static String DEFAULT_CONTENT_TYPE
| Constructor Detail |
|---|
public AbstractTemplateDataSource()
public AbstractTemplateDataSource(String encoding)
| Method Detail |
|---|
public String getCharacterEncoding()
TemplateDataSourceTemplateDataSource.
This will be used to create a
new InputStreamReader(stream,characterEncoding) from the
InputStream return by getInputStream().
getCharacterEncoding in interface TemplateDataSourceTemplateDataSource
as defined by the java.io.InputStreamReader()
specification.TemplateDataSource.getCharacterEncoding()public void setCharacterEncoding(String newEncoding)
newEncoding - -
the new encoding to useTemplateDataSource.getCharacterEncoding()public TemplateCachingHints getCachingHints()
TemplateDataSourcenull is returned then
the template data will never be cached.
However the inverse is not necessarily the case. You may return a
TemplateCachingHints, however this does not mean the
rendering mechanism will cache the template data.
You might return null if the template data is especially
large and you dont want it retained in cache memory.
getCachingHints in interface TemplateDataSourceTemplateCachingHints to say how it might
be cached.TemplateDataSource.getCachingHints()public void setCachingHints(TemplateCachingHints newValue)
newValue - -
the new hintspublic String getContentType()
TemplateDataSourceAn example content type is text/xhtml and cause a template compiler to be found for XHTML template data.
getContentType in interface TemplateDataSourceTemplateDataSource.getContentType()public void setContentType(String contentType)
contentType - The contentType to set.public TemplateCompilerHints getCompilerHints()
TemplateDataSource
Most of the TemplateCompilerHints properties are really
aimed as JAXP XML parser implementations but you can provide generic
values via the getAttribute() mechanism.
getCompilerHints in interface TemplateDataSourceTemplateCompilerHints implementation or null
if there are no compiler hintsTemplateDataSource.getCompilerHints()public void setCompilerHints(TemplateCompilerHints compilerHints)
TemplateCompilerHints to use for this
TemplateDataSource.
compilerHints - -
the TemplateCompilerHints to use
|
EchoPoint API - 3.0.0b5 App Webcontainer |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||