com.arsdigita.sitenode
Class SiteNodePresentationManager

java.lang.Object
  extended bycom.arsdigita.sitenode.SiteNodePresentationManager
All Implemented Interfaces:
PresentationManager

Deprecated. Use PageTransformer in conjunction with LegacyStylesheetResolver.

public class SiteNodePresentationManager
extends Object
implements PresentationManager

Class for managing and obtaining Stylesheets.

Version:
$Id: //core-platform/dev/src/com/arsdigita/sitenode/SiteNodePresentationManager.java#15 $
Author:
Bill Schneider

Field Summary
static String versionId
          Deprecated.  
 
Constructor Summary
SiteNodePresentationManager()
          Deprecated.  
 
Method Summary
protected  Stylesheet getComposedStylesheet(SiteNode sn, Locale l, String outputType)
          Deprecated. Returns a Stylesheet composed of rules from the XSL stylesheet from this site node, all of its parent site nodes, and the default stylesheets for the packages mounted on this site node and the parent site nodes.
protected  Stylesheet getComposedStylesheet(SiteNodeRequestContext rctx)
          Deprecated. Returns a Stylesheet composed of rules from the XSL stylesheet from this site node, all of its parent site nodes, and the default stylesheets for the packages mounted on this site node and the parent site nodes.
static PresentationManager getInstance()
          Deprecated.  
 void invalidateStylesheet(SiteNode sn)
          Deprecated. Invalidates the stylesheet associated with this site node; will cause the composed stylesheet and the transformer to be rebuilt.
 void servePage(Document doc, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)
          Deprecated. Uses servePage(Document, HttpServletRequest, HttpServletResponse, Map) to implement the PresentationManager interface.
 void servePage(Document doc, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp, Map params)
          Deprecated. Serves an XML Document, getting and applying the appropriate XSLT.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

versionId

public static final String versionId
Deprecated. 
See Also:
Constant Field Values
Constructor Detail

SiteNodePresentationManager

public SiteNodePresentationManager()
Deprecated. 
Method Detail

getInstance

public static PresentationManager getInstance()
Deprecated. 

getComposedStylesheet

protected Stylesheet getComposedStylesheet(SiteNodeRequestContext rctx)
Deprecated. 
Returns a Stylesheet composed of rules from the XSL stylesheet from this site node, all of its parent site nodes, and the default stylesheets for the packages mounted on this site node and the parent site nodes.

Returns:
A stylesheet composed of the stylesheet rules for this site node (highest precedence), the stylesheet rules for parent site nodes (precedence decreasing in distance from this), the default stylesheet for the mounted package on this site node, and the default stylesheets for the packages mounted on ancestors of this site node. (lowest precedence)

getComposedStylesheet

protected Stylesheet getComposedStylesheet(SiteNode sn,
                                           Locale l,
                                           String outputType)
Deprecated. 
Returns a Stylesheet composed of rules from the XSL stylesheet from this site node, all of its parent site nodes, and the default stylesheets for the packages mounted on this site node and the parent site nodes.

Returns:
A stylesheet composed of the stylesheet rules for this site node (highest precedence), the stylesheet rules for parent site nodes (precedence decreasing in distance from this), the default stylesheet for the mounted package on this site node, and the default stylesheets for the packages mounted on ancestors of this site node. (lowest precedence)

invalidateStylesheet

public void invalidateStylesheet(SiteNode sn)
Deprecated. 
Invalidates the stylesheet associated with this site node; will cause the composed stylesheet and the transformer to be rebuilt.


servePage

public void servePage(Document doc,
                      javax.servlet.http.HttpServletRequest req,
                      javax.servlet.http.HttpServletResponse resp)
Deprecated. 
Uses servePage(Document, HttpServletRequest, HttpServletResponse, Map) to implement the PresentationManager interface.

Specified by:
servePage in interface PresentationManager
Parameters:
doc - the XML document whose content is to be displayed to the output
req - the servlet request
resp - the servlet response

servePage

public void servePage(Document doc,
                      javax.servlet.http.HttpServletRequest req,
                      javax.servlet.http.HttpServletResponse resp,
                      Map params)
Deprecated. 
Serves an XML Document, getting and applying the appropriate XSLT. The XSLT is chosen based on the stylesheets associated with the current site node, parent site nodes, and mounted package type, in that order of precedence. The current request context must be an instance of SiteNodeRequestContext.

Parameters:
doc - the Bebop page to serve
req - the servlet request
resp - the servlet response
params - XSLT parameters (ignored by this implementation)


Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 21 2004:2337 UTC