|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.arsdigita.sitenode.BasePresentationManager
SimplePresentationManager
instead.
Class for managing and obtaining a Stylesheet based on the current request's location in the site map. First, we try to find a stylesheet specific to this site node. If we can't find one, then we walk up the site map until we find a parent of this site node that has a stylesheet associated with it. If we haven't found one by the time we reach the root, then we'll do the same tree walk except we'll look for the stylesheet associated with the package mounted on each site node.
Field Summary | |
static String |
CACHE_DISABLE
Deprecated. |
static String |
CACHE_NONE
Deprecated. |
static String |
CACHE_USER
Deprecated. |
static String |
CACHE_WORLD
Deprecated. |
static String |
versionId
Deprecated. |
Constructor Summary | |
BasePresentationManager()
Deprecated. |
Method Summary | |
protected Stylesheet |
findStylesheet(SiteNode sn,
Locale l,
String outputType)
Deprecated. Returns a Stylesheet for the current request context, searching the current 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 |
findStylesheet(SiteNodeRequestContext rctx)
Deprecated. Returns a Stylesheet for the current request context, searching the current 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. |
protected static PrintWriter |
getPrintWriter(javax.servlet.http.HttpServletResponse resp,
String charset)
Deprecated. Use this instead of getWriter for servlet engines that are slighlty broken. |
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. |
static void |
setDefaultCachePolicy(String policy)
Deprecated. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String versionId
public static final String CACHE_NONE
public static final String CACHE_DISABLE
public static final String CACHE_USER
public static final String CACHE_WORLD
Constructor Detail |
public BasePresentationManager()
Method Detail |
public static void setDefaultCachePolicy(String policy)
protected static PrintWriter getPrintWriter(javax.servlet.http.HttpServletResponse resp, String charset) throws IOException
getOutputStream()
and the presentation manager is
asked to serve a page, getWriter()
will throw an
IllegalStateException
(see the servlet
spec). In that case, this method returns a print writer created
from the output stream for the specified response.
In view of the above, there is no guarantee that the character
encoding used by the PrintWriter
returned by this
method will be the one specified by the charset
parameter. To be more precise, if the PrintWriter
is constructed from the OutputStream
returned by
resp.getOutputStream()
, then it will have the
specified character encoding.
If the PrintWriter
is the one returned by
resp.getWriter()
then its character encoding is
the one specified in the charset= property
of the
setContentType(String) method, which must be called
before calling this method for the charset to take
effect. (See getWriter())
resp
- the response ojectcharset
- the character encoding (see Character
Encoding). If this is null
, then the default
system encoding will be used (typically "ISO-8859-1").
IOException
public static PresentationManager getInstance()
protected Stylesheet findStylesheet(SiteNodeRequestContext rctx)
protected Stylesheet findStylesheet(SiteNode sn, Locale l, String outputType)
public void servePage(Document doc, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)
servePage(Document, HttpServletRequest,
HttpServletResponse, Map)
to implement the
PresentationManager
interface.
servePage
in interface PresentationManager
doc
- the XML document whose content is to be displayed
to the outputreq
- the servlet requestresp
- the servlet responsepublic void servePage(Document doc, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp, Map params)
req.getContextPath()
doc
- the Bebop page to servereq
- the servlet requestresp
- the servlet responseparams
- a set of name-value pairs to pass as parameters
to the Transformer
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |