| java.lang.Object org.openharmonise.rm.publishing.WebPageEngine
WebPageEngine | public class WebPageEngine (Code) | | This class provides the funtionality to process the publishing rules
defined in a WebPage object's XML to produce XML containing the content
to be presented.
author: Michael Bell version: $Revision: 1.2.2.1 $ |
Method Summary | |
public void | assignSessionId(State state) Assign the session id associated with this object to the
given State . | protected void | copyStateChildren(Node appendTo, State state, HarmoniseOutput output) Copies the children of the given State , ignoring any Session tags,
to the Node appendTo. | public HarmoniseOutput | createXML(WebPage page, State state) Processes the given WebPage in the context of the given State
and returns the resultant HarmoniseOutput . | public HarmoniseOutput | createXML(Element topEl, State state) Processes the given Element in the context of the given State
and returns the resultant HarmoniseOutput . | public Session | getSession() | protected void | logPublish(WebPage page, State state) Logs the publishing of the given web page. | protected Element | navigation(Element nav, State state, HarmoniseOutput output) Processes a 'Navigation' element, returning a new 'Navigation' element with
the appropriate content. | protected Element | publishTemplate(Element templateEl, State state, HarmoniseOutput output) Processes a 'Template' element, returning an element which is the result of the
publishing the corresponding Template object. | public void | render(WebPage page, State state, OutputStream out) | public void | render(WebPage page, State state, PageRenderer renderer, OutputStream out) Renders page to OutputStream using the given renderer. | public String | toString() |
WebPageEngine | public WebPageEngine()(Code) | | Basic constructor
|
assignSessionId | public void assignSessionId(State state)(Code) | | Assign the session id associated with this object to the
given State .
Parameters: state - the state to be assigned the session id |
copyStateChildren | protected void copyStateChildren(Node appendTo, State state, HarmoniseOutput output)(Code) | | Copies the children of the given State , ignoring any Session tags,
to the Node appendTo.
Parameters: appendTo - Parameters: state - Parameters: output - |
createXML | public HarmoniseOutput createXML(WebPage page, State state) throws PublishException(Code) | | Processes the given WebPage in the context of the given State
and returns the resultant HarmoniseOutput . The method gets the XML associated
with the WebPage and parses it to find the instructions on what
content to include in the resultant HarmoniseOutput , the State
gives a context to the process.
Parameters: page - Parameters: state - throws: PublishException - |
createXML | public HarmoniseOutput createXML(Element topEl, State state) throws PublishException(Code) | | Processes the given Element in the context of the given State
and returns the resultant HarmoniseOutput . The method
parses the XML to find the instructions on what content to include in the
resultant HarmoniseOutput . The State
gives a context to the process.
Parameters: page - Parameters: state - throws: PublishException - |
getSession | public Session getSession()(Code) | | Returns the Session associated with this object
|
|
|