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 |
---|---|
java.lang.String |
getEncoding()
Returns the encoding used.
|
ItsNatServlet |
getItsNatServlet()
Returns the ItsNat servlet where the template was registered.
|
java.lang.String |
getMIME()
Returns the template MIME type.
|
java.lang.String |
getName()
Returns the used name to register the template.
|
java.lang.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(java.lang.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, setUserValue
ItsNatServlet getItsNatServlet()
java.lang.String getName()
java.lang.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:").
java.lang.String getMIME()
java.lang.String getEncoding()
The default value is defined by ItsNatServletConfig.getDefaultEncoding()
setEncoding(String)
void setEncoding(java.lang.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 © 2007 Innowhere Software Services S.L. All Rights Reserved.