Package org.mycore.common.xml
Class MCRLayoutService
java.lang.Object
org.mycore.common.xml.MCRLayoutService
Does the layout for other MyCoRe servlets by transforming XML input to
various output formats, using XSL stylesheets.
- Author:
- Frank Lützenkirchen, Thomas Scheffler (yagee)
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
doLayout
(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse res, MCRContent source) static MCRContentTransformer
getContentTransformer
(String docType, MCRParameterCollector parameter) getTransformedContent
(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse res, MCRContent source) static MCRLayoutService
instance()
void
sendXML
(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse res, MCRContent xml)
-
Constructor Details
-
MCRLayoutService
public MCRLayoutService()
-
-
Method Details
-
instance
-
sendXML
public void sendXML(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse res, MCRContent xml) throws IOException - Throws:
IOException
-
doLayout
public void doLayout(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse res, MCRContent source) throws IOException, TransformerException, SAXException -
getTransformedContent
public MCRContent getTransformedContent(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse res, MCRContent source) throws IOException, TransformerException, SAXException -
getContentTransformer
public static MCRContentTransformer getContentTransformer(String docType, MCRParameterCollector parameter) throws Exception - Throws:
Exception
-