public class FachRefServlet
extends org.mycore.frontend.servlets.MCRServlet
Constructor and Description |
---|
FachRefServlet() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getParameter(org.mycore.frontend.servlets.MCRServletJob job,
java.lang.String name)
Takes the HTTP-Request from the
MCRServletJob and retrieves the parameter. |
static org.jdom2.Element |
prepareOutput(org.mycore.frontend.servlets.MCRServletJob job,
java.lang.String outputName)
Prepares the basic output with a given root element name and the friendly name and the current timestamp
|
static org.jdom2.Element |
prepareOutput(org.mycore.frontend.servlets.MCRServletJob job,
java.lang.String outputName,
java.lang.String module)
Prepares the basic output with a given root element name and the friendly name and the current timestamp
|
static org.jdom2.Element |
prepareOutput(org.mycore.frontend.servlets.MCRServletJob job,
java.lang.String outputName,
java.lang.String module,
java.lang.String function)
Prepares the basic output with a given root element name and the friendly name and the current timestamp
|
static void |
sendOutput(org.mycore.frontend.servlets.MCRServletJob job,
org.jdom2.Element output)
renders and sends the prepared output XML to the HTTP response
|
doGet, doPost, encodeURL, getLayoutService, getProperty, getServletBaseURL, getSession, init
public static java.lang.String getParameter(org.mycore.frontend.servlets.MCRServletJob job, java.lang.String name)
MCRServletJob
and retrieves the parameter.name
- the name of the parameterjob
- MCRServletJob
name
- the name of the parameter from the HTML requestMCRServletJob
. If the parameter is not found,an empty string is returnedpublic static org.jdom2.Element prepareOutput(org.mycore.frontend.servlets.MCRServletJob job, java.lang.String outputName)
job
- MCRServletJob
outputName
- the name of the root element for the outputpublic static org.jdom2.Element prepareOutput(org.mycore.frontend.servlets.MCRServletJob job, java.lang.String outputName, java.lang.String module)
job
- MCRServletJob
outputName
- the name of the root element for the outputmodule
- the name of the modulepublic static org.jdom2.Element prepareOutput(org.mycore.frontend.servlets.MCRServletJob job, java.lang.String outputName, java.lang.String module, java.lang.String function)
job
- MCRServletJob
outputName
- the name of the root element for the outputmodule
- the name of the modulefunction
- the name of the function within the modulepublic static void sendOutput(org.mycore.frontend.servlets.MCRServletJob job, org.jdom2.Element output) throws java.io.IOException, javax.xml.transform.TransformerException, org.xml.sax.SAXException
job
- MCRServletJob
output
- org.jdom2.element acting as outputjava.io.IOException
- thrown while writing the output to the HTTP responsejavax.xml.transform.TransformerException
- thrown while rendering the output elementorg.xml.sax.SAXException
- thrown while parsing the output element