| |
|
| org.itsnat.core.ItsNatServlet
All known Subclasses: org.itsnat.impl.core.ItsNatServletImpl,
getDocFragmentTemplate | public DocFragmentTemplate getDocFragmentTemplate(String name)(Code) | | Returns the document fragment template registered with the specified name.
Parameters: name - the name used to look for. the document fragment template with this name or null if not found. |
getDocumentTemplate | public DocumentTemplate getDocumentTemplate(String name)(Code) | | Returns the document template registered with the specified name.
Parameters: name - the name used to look for. the document template with this name or null if not found. |
getItsNatServletConfig | public ItsNatServletConfig getItsNatServletConfig()(Code) | | Returns the utility object used to setup the ItsNat servlet.
the configuration object. |
getItsNatServletContext | public ItsNatServletContext getItsNatServletContext()(Code) | | Returns the ItsNat application context this ItsNat servlet belongs to.
the context object. |
getServlet | public Servlet getServlet()(Code) | | Returns the wrapped javax.servlet.Servlet object.
the wrapped servlet object. |
processRequest | public void processRequest(ServletRequest request, ServletResponse response)(Code) | | Called to redirect a normal servlet request to the ItsNat servlet.
ItsNat requests are processed by the registered
ItsNatServletRequestListener objects.
Parameters: request - the standard servlet request. Parameters: response - the standard servlet response. |
registerDocFragmentTemplate | public DocFragmentTemplate registerDocFragmentTemplate(String name, String mime, String path)(Code) | | Registers a file used as a document fragment template with the specified name and MIME type.
The specified MIME type may be different to the "intrinsic" MIME of the specified
file. For instance the loaded file may be XHTML (application/xhtml+xml) but
it can be registered as HTML (text/html) to achieve the maximum compatibility.
A markup template file is a normal (X)HTML or XML file. The fragment part is:
- (X)HTML: the node group below the <head> and <body>. They are two fragments,
an <itsnat:include> tag can select the appropriated fragment or using
the concrete
org.itsnat.core.html.HTMLDocFragmentTemplate method.
- XML: the node group below the root element. The root element tag can have any name.
Parameters: name - the name used to identify the template. Parameters: mime - the MIME type. Parameters: path - the file path of the template. See Also: ItsNatServlet.registerDocumentTemplate(String,String,String) See Also: ItsNatServlet.getDocFragmentTemplate(String) |
registerDocumentTemplate | public DocumentTemplate registerDocumentTemplate(String name, String mime, String path)(Code) | | Registers a file used as a document template with the specified name and MIME type.
The specified MIME type may be different to the "intrinsic" MIME of the specified
file. For instance the loaded file may be XHTML (application/xhtml+xml) but
it can be registered as HTML (text/html) to achieve the maximum compatibility.
A markup template file is a normal (X)HTML or XML file.
Parameters: name - the name used to identify the template. Parameters: mime - the MIME type. Parameters: path - the file path of the template. See Also: ItsNatServlet.registerDocFragmentTemplate(String,String,String) See Also: ItsNatServlet.getDocumentTemplate(String) |
|
|
|