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() |
| Modifier and Type | Method and Description |
|---|---|
void |
addElement(ContentHandler ch,
String ns,
String lname,
String qname,
Attributes attr,
Object content)
Adds an element to the content handler.
|
void |
addRequestAttributes(ContentHandler ch,
HttpServletRequest request) |
void |
addRequestParameters(ContentHandler ch,
HttpServletRequest request) |
void |
destroy()
called by spring.
|
String |
getAnchorLinkFormat() |
Collection |
getAuthzGroups(org.sakaiproject.entity.api.Reference ref,
String userId) |
String |
getAuthZPrefix() |
String |
getBreadCrumbParameter() |
String |
getBreadCrumbParameterFormat() |
static HttpServletRequest |
getCurrentRequest() |
String |
getDefaultStackTrace() |
String |
getDescription(org.sakaiproject.entity.api.Entity entity) |
org.sakaiproject.entity.api.EntityManager |
getEntityManager() |
String |
getErrorFormat() |
String |
getHrefTagFormat() |
ContentHandler |
getOutputHandler(OutputStream out) |
ContentHandler |
getOutputHandler(Writer out) |
Map |
getOutputProperties() |
org.sakaiproject.entity.api.ResourceProperties |
getProperties(org.sakaiproject.entity.api.Entity entity) |
Map |
getResponseHeaders() |
String |
getStandardLinkFormat() |
String |
getUrl(org.sakaiproject.entity.api.Entity entity) |
String |
getXalan270ContentHandler() |
String |
getXslt() |
void |
init()
called by spring.
|
boolean |
isEscaped() |
void |
outputContent(org.sakaiproject.entity.api.Entity entity,
org.sakaiproject.entity.api.Entity sideBar,
HttpServletRequest request,
HttpServletResponse res) |
void |
parseToSAX(String toRender,
ContentHandler ch) |
String |
render(uk.ac.cam.caret.sakai.rwiki.service.api.model.RWikiObject rwo,
boolean withBreadCrumb) |
void |
renderToXML(uk.ac.cam.caret.sakai.rwiki.service.api.model.RWikiObject rwo,
ContentHandler ch,
boolean withBreadCrumb,
boolean escapeXML)
Serialises the rendered content of the RWiki Object to SAX
|
void |
setAnchorLinkFormat(String anchorLinkFormat) |
void |
setAuthZPrefix(String authZPrefix) |
void |
setBreadCrumbParameter(String breadCrumbParameter) |
void |
setBreadCrumbParameterFormat(String breadCrumbParameterFormat) |
static void |
setCurrentRequest(HttpServletRequest request) |
void |
setDefaultStackTrace(String defaultStackTrace) |
void |
setEntityManager(org.sakaiproject.entity.api.EntityManager entityManager) |
void |
setErrorFormat(String errorFormat) |
void |
setEscaped(boolean escaped) |
void |
setHrefTagFormat(String hrefTagFormat) |
void |
setOutputProperties(Map outputProperties) |
void |
setResponseHeaders(Map responseHeaders) |
void |
setStandardLinkFormat(String standardLinkFormat) |
void |
setTransformParameters(Map<String,String> transformParameters) |
void |
setXalan270ContentHandler(String xalan270ContentHandler) |
void |
setXslt(String xslt) |
decode, getAccessURLStart, getExperimental, getFeedFormat, getHTML, getMinorType, getRevision, isAvailable, matches, setAccessURLStart, setAliasService, setExperimental, setFeedFormat, setMinorType, setReference, setSiteServiceprotected boolean m_siteAlias
public String getDescription(org.sakaiproject.entity.api.Entity entity)
public String getUrl(org.sakaiproject.entity.api.Entity entity)
public static HttpServletRequest getCurrentRequest()
public static void setCurrentRequest(HttpServletRequest request)
request - public void outputContent(org.sakaiproject.entity.api.Entity entity,
org.sakaiproject.entity.api.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 org.sakaiproject.entity.api.ResourceProperties getProperties(org.sakaiproject.entity.api.Entity entity)
public void renderToXML(uk.ac.cam.caret.sakai.rwiki.service.api.model.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(uk.ac.cam.caret.sakai.rwiki.service.api.model.RWikiObject rwo, boolean withBreadCrumb)
public Collection getAuthzGroups(org.sakaiproject.entity.api.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 org.sakaiproject.entity.api.EntityManager getEntityManager()
public void setEntityManager(org.sakaiproject.entity.api.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-2014 Sakai Project. All Rights Reserved.