org.moremotion.page
Class PageGenerator
java.lang.Object
org.moremotion.page.PageGenerator
public class PageGenerator
- extends java.lang.Object
Responsible to generate a page either as XML or HTML depending on the requester browsers XSLT capability.
To decide if the browser can perform the XSLT, its user agent information is checked against the provided
information with system parameters "xsltCapableBrowsers" and "xsltIncapableBrowsers".
This check is performed one time per new session. It is possible to force the Page Generator to reponse as HTML even
though the agent is marked as XSLT capable by including "_sendhtml=true" parameter in the request.
In case of a pure XML response is required it can be achieved by including "_sendxml=true" parameter in the request.
The generate() method of this class called by DisplayPage service which is mapped to "display.doms" URL.
A typical call of the display service is
display.doms?pg=pagename
The only mandatory parameter pg
specifies the name of the page (without extension) to be displayed.
The requested page can be a simple HMTL file or an XSL file.
All parameters together:
pg
- The Name of the page
loc
- The location of the page. It is significant if page name is given relatively without a "/" character
at the first position
pgsep
- The page separator character
_sendhtml
- To force HTML response
_sendxml
- To force Pure XML response
_nocache
- To force to include no-cache headers in the response
_cmd
- The name of the command. It must be one of the commands defined in page configuration
_lang
- To change the language of the page. It is significant if the language of the page is set as "ml" (Multi Lingual)
in the page configuration.
_variant
- To request a variant of the page.
- Version:
- $Id: PageGenerator.java 211 2008-09-11 15:20:46Z erkan $
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PageGenerator
public PageGenerator()
generate
public void generate(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
CurrentPage currpage,
java.lang.String xml)
throws PageGenerationException
- Throws:
PageGenerationException
generateDom
public org.w3c.dom.Node generateDom(MoreMotionRequest request,
java.lang.String page)
throws PageGenerationException
- Throws:
PageGenerationException
generate
public void generate(MoreMotionRequest request,
java.lang.String page)
throws PageGenerationException
- Throws:
PageGenerationException
Copyright © 2002-2008 MOR YAZILIM. All Rights Reserved.