org.itsnat.core.tmpl
Interface ItsNatHTMLDocFragmentTemplate

All Superinterfaces:
ItsNatDocFragmentTemplate, ItsNatUserData, MarkupTemplate

public interface ItsNatHTMLDocFragmentTemplate
extends ItsNatDocFragmentTemplate

Represents an (X)HTML markup fragment template. Concrete fragments are created using this template and can be inserted into documents.

An (X)HTML fragment contains actually two fragments: the <head> content and the <body> content. The <itsnat:include> element uses the appropriated fragment automatically, otherwise call the required fragment calling the specific loadDocumentFragmentX method

Author:
Jose Maria Arranz Santamaria

Method Summary
 org.w3c.dom.DocumentFragment loadDocumentFragmentBody(ItsNatDocument docTarget)
          Creates a org.w3c.dom.DocumentFragment using the <body> content of the markup template.
 org.w3c.dom.DocumentFragment loadDocumentFragmentBody(ItsNatDocument docTarget, ItsNatServletRequest request, ItsNatServletResponse response)
          Creates a org.w3c.dom.DocumentFragment using the <body> content of the markup template.
 org.w3c.dom.DocumentFragment loadDocumentFragmentHead(ItsNatDocument docTarget)
          Creates a org.w3c.dom.DocumentFragment using the <head> content of the markup template.
 org.w3c.dom.DocumentFragment loadDocumentFragmentHead(ItsNatDocument docTarget, ItsNatServletRequest request, ItsNatServletResponse response)
          Creates a org.w3c.dom.DocumentFragment using the <head> content of the markup template.
 
Methods inherited from interface org.itsnat.core.tmpl.ItsNatDocFragmentTemplate
loadDocumentFragment, loadDocumentFragment
 
Methods inherited from interface org.itsnat.core.tmpl.MarkupTemplate
getEncoding, getItsNatServlet, getMIME, getName, getSource, isOnLoadCacheStaticNodes, setEncoding, setOnLoadCacheStaticNodes
 
Methods inherited from interface org.itsnat.core.ItsNatUserData
containsUserValueName, getUserValue, getUserValueNames, removeUserValue, setUserValue
 

Method Detail

loadDocumentFragmentHead

org.w3c.dom.DocumentFragment loadDocumentFragmentHead(ItsNatDocument docTarget)
Creates a org.w3c.dom.DocumentFragment using the <head> content of the markup template. This DocumentFragment is ready to be inserted into the specified org.w3c.dom.Document.

Parameters:
docTarget - the document used to create the fragment.
Returns:
the document fragment ready to be inserted.

loadDocumentFragmentHead

org.w3c.dom.DocumentFragment loadDocumentFragmentHead(ItsNatDocument docTarget,
                                                      ItsNatServletRequest request,
                                                      ItsNatServletResponse response)
Creates a org.w3c.dom.DocumentFragment using the <head> content of the markup template. This DocumentFragment is ready to be inserted into the specified org.w3c.dom.Document.

Request and reponse parameters can be null, only are useful when the template is loaded using a custom TemplateSource

Parameters:
docTarget - the document used to create the fragment.
request - current request. Maybe null.
response - current response. Maybe null.
Returns:
the document fragment ready to be inserted.

loadDocumentFragmentBody

org.w3c.dom.DocumentFragment loadDocumentFragmentBody(ItsNatDocument docTarget)
Creates a org.w3c.dom.DocumentFragment using the <body> content of the markup template. This DocumentFragment is ready to be inserted into the specified org.w3c.dom.Document.

Parameters:
docTarget - the document used to create the fragment.
Returns:
the document fragment ready to be inserted.

loadDocumentFragmentBody

org.w3c.dom.DocumentFragment loadDocumentFragmentBody(ItsNatDocument docTarget,
                                                      ItsNatServletRequest request,
                                                      ItsNatServletResponse response)
Creates a org.w3c.dom.DocumentFragment using the <body> content of the markup template. This DocumentFragment is ready to be inserted into the specified org.w3c.dom.Document.

Request and reponse parameters can be null, only are useful when the template is loaded using a custom TemplateSource

Parameters:
docTarget - the document used to create the fragment.
request - current request. Maybe null.
response - current response. Maybe null.
Returns:
the document fragment ready to be inserted.


Copyright © 2007 Innowhere Software Services S.L. All Rights Reserved.