public interface MarkupTemplate extends ItsNatUserData
A markup template can be a document (page) or a fragment (to insert into documents)
and is obtained from an ItsNatServlet where it was previously registered.
| Modifier and Type | Method and Description |
|---|---|
String |
getEncoding()
Returns the encoding used.
|
ItsNatServlet |
getItsNatServlet()
Returns the ItsNat servlet where the template was registered.
|
String |
getMIME()
Returns the template MIME type.
|
String |
getName()
Returns the used name to register the template.
|
Object |
getSource()
Returns the source specified to load the template.
|
boolean |
isOnLoadCacheStaticNodes()
Informs whether static nodes are serialized as text and globally cached when
the template is loaded to save memory (it improves the performance too).
|
void |
setEncoding(String encoding)
Sets the encoding used.
|
void |
setOnLoadCacheStaticNodes(boolean cache)
Sets if static nodes are serialized as text and globally cached when
the template is loaded to save memory (it improves the performance too).
|
containsUserValueName, getUserValue, getUserValueNames, removeUserValue, setUserValueItsNatServlet getItsNatServlet()
String getName()
Object getSource()
Current implementation returns the template source provided, if it was a String (file path or URL) it returns a String with URL format (including local files in this case the URL starts with "file:").
String getMIME()
String getEncoding()
The default value is defined by ItsNatServletConfig.getDefaultEncoding()
setEncoding(String)void setEncoding(String encoding)
encoding - the new encoding.getEncoding()boolean isOnLoadCacheStaticNodes()
The default value is defined by ItsNatServletConfig.isOnLoadCacheStaticNodes(String)
using the mime type of this template.
setOnLoadCacheStaticNodes(boolean)void setOnLoadCacheStaticNodes(boolean cache)
cache - true to enable the static node cache.isOnLoadCacheStaticNodes()Copyright © Innowhere Software, Jose Maria Arranz Santamaria.