|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mycore.common.xml.MCRLayoutService
public class MCRLayoutService
Does the layout for other MyCoRe servlets by transforming XML input to various output formats, using XSL stylesheets.
| Method Summary | |
|---|---|
static Properties |
buildXSLParameters(HttpServletRequest request)
|
Document |
doLayout(Document doc,
String stylesheetName,
Hashtable<String,String> params)
|
void |
doLayout(HttpServletRequest req,
HttpServletResponse res,
Document jdom)
|
void |
doLayout(HttpServletRequest req,
HttpServletResponse res,
Document dom)
|
void |
doLayout(HttpServletRequest req,
HttpServletResponse res,
File file)
|
void |
doLayout(HttpServletRequest req,
HttpServletResponse res,
InputStream is)
|
void |
doLayout(HttpServletRequest req,
HttpServletResponse res,
Writer out,
Document jdom)
writes the transformation result directly into the Writer uses the HttpServletResponse only for error messages |
void |
generated(org.apache.xalan.trace.GenerateEvent ev)
When a stylesheet generates characters, they will be logged in debug mode. |
static MCRLayoutService |
instance()
|
void |
selected(org.apache.xalan.trace.SelectionEvent ev)
When a stylesheet does a selection, like in <xsl:value-of /> or similar elements, the selection element and xpath is logged in debug mode. |
void |
sendXML(HttpServletRequest req,
HttpServletResponse res,
Document jdom)
|
void |
sendXML(HttpServletRequest req,
HttpServletResponse res,
Document dom)
|
void |
sendXML(HttpServletRequest req,
HttpServletResponse res,
File file)
|
void |
sendXML(HttpServletRequest req,
HttpServletResponse res,
InputStream in)
|
void |
trace(org.apache.xalan.trace.TracerEvent ev)
Traces the execution of xsl stylesheet elements in debug mode. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static MCRLayoutService instance()
public void sendXML(HttpServletRequest req,
HttpServletResponse res,
Document jdom)
throws IOException
IOException
public void sendXML(HttpServletRequest req,
HttpServletResponse res,
Document dom)
throws IOException
IOException
public void sendXML(HttpServletRequest req,
HttpServletResponse res,
InputStream in)
throws IOException
IOException
public void sendXML(HttpServletRequest req,
HttpServletResponse res,
File file)
throws IOException
IOException
public void doLayout(HttpServletRequest req,
HttpServletResponse res,
Document jdom)
throws IOException
IOException
public void doLayout(HttpServletRequest req,
HttpServletResponse res,
Writer out,
Document jdom)
throws IOException
IOException
public void doLayout(HttpServletRequest req,
HttpServletResponse res,
Document dom)
throws IOException
IOException
public void doLayout(HttpServletRequest req,
HttpServletResponse res,
InputStream is)
throws IOException
IOException
public void doLayout(HttpServletRequest req,
HttpServletResponse res,
File file)
throws IOException
IOException
public Document doLayout(Document doc,
String stylesheetName,
Hashtable<String,String> params)
throws Exception
Exceptionpublic static Properties buildXSLParameters(HttpServletRequest request)
public void trace(org.apache.xalan.trace.TracerEvent ev)
trace in interface org.apache.xalan.trace.TraceListenerpublic void generated(org.apache.xalan.trace.GenerateEvent ev)
generated in interface org.apache.xalan.trace.TraceListenerpublic void selected(org.apache.xalan.trace.SelectionEvent ev)
selected in interface org.apache.xalan.trace.TraceListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||