public class XSLTEntityHandler extends BaseEntityHandlerImpl
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
m_siteAlias
Configuration: allow use of alias for site id in references.
|
m_aliasService, m_siteService| Constructor and Description |
|---|
XSLTEntityHandler() |
decode, getAccessURLStart, getExperimental, getFeedFormat, getHTML, getMinorType, getRevision, isAvailable, matches, setAccessURLStart, setAliasService, setExperimental, setFeedFormat, setMinorType, setReference, setSiteServiceprotected boolean m_siteAlias
public static HttpServletRequest getCurrentRequest()
public static void setCurrentRequest(HttpServletRequest request)
request - public void outputContent(Entity entity, Entity sideBar, HttpServletRequest request, HttpServletResponse res)
public void addElement(ContentHandler ch, String ns, String lname, String qname, Attributes attr, Object content) throws SAXException
ch - the content handlerns - the name space of the elementlname - the local nameqname - the qnameattr - the attribute listcontent - content of the elementSAXException - if the underlying sax chain has a problempublic ResourceProperties getProperties(Entity entity)
public void renderToXML(RWikiObject rwo, ContentHandler ch, boolean withBreadCrumb, boolean escapeXML) throws SAXException, IOException
rwo - ch - withBreadCrumb - SAXExceptionIOExceptionpublic void parseToSAX(String toRender, ContentHandler ch) throws IOException, SAXException
IOExceptionSAXExceptionpublic String render(RWikiObject rwo, boolean withBreadCrumb)
public Collection getAuthzGroups(Reference ref, String userId)
public void init()
public void destroy()
public ContentHandler getOutputHandler(Writer out) throws IOException
IOExceptionuk.co.tfd.sakai.xmlserver.api.OutputContentHandler#getOutputHandler(java.io.Writer)public ContentHandler getOutputHandler(OutputStream out) throws IOException
IOExceptionpublic String getXslt()
public void setXslt(String xslt)
xslt - The xslt to set.public String getDefaultStackTrace()
public void setDefaultStackTrace(String defaultStackTrace)
defaultStackTrace - The defaultStackTrace to set.public String getErrorFormat()
public void setErrorFormat(String errorFormat)
errorFormat - The errorFormat to set.public String getAuthZPrefix()
public void setAuthZPrefix(String authZPrefix)
authZPrefix - The authZPrefix to set.public String getAnchorLinkFormat()
public void setAnchorLinkFormat(String anchorLinkFormat)
anchorLinkFormat - The anchorLinkFormat to set.public String getHrefTagFormat()
public void setHrefTagFormat(String hrefTagFormat)
hrefTagFormat - The hrefTagFormat to set.public String getStandardLinkFormat()
public void setStandardLinkFormat(String standardLinkFormat)
standardLinkFormat - The standardLinkFormat to set.public Map getOutputProperties()
public void setOutputProperties(Map outputProperties)
outputProperties - The outputProperties to set.public void setTransformParameters(Map<String,String> transformParameters)
transformParameters - The transform paramaters that should be passed when transforming it.public Map getResponseHeaders()
public void setResponseHeaders(Map responseHeaders)
responseHeaders - The responseHeaders to set.public void addRequestAttributes(ContentHandler ch, HttpServletRequest request) throws Exception
Exceptionpublic void addRequestParameters(ContentHandler ch, HttpServletRequest request) throws Exception
Exceptionpublic EntityManager getEntityManager()
public void setEntityManager(EntityManager entityManager)
entityManager - The entityManager to set.public String getBreadCrumbParameterFormat()
public void setBreadCrumbParameterFormat(String breadCrumbParameterFormat)
breadCrumbParameterFormat - the breadCrumbParameterFormat to setpublic String getBreadCrumbParameter()
public void setBreadCrumbParameter(String breadCrumbParameter)
breadCrumbParameter - the breadCrumbParameter to setpublic String getXalan270ContentHandler()
public void setXalan270ContentHandler(String xalan270ContentHandler)
xalan270ContentHandler - the xalan270ContentHandler to setpublic boolean isEscaped()
public void setEscaped(boolean escaped)
Copyright © 2003–2016 Sakai Project. All rights reserved.