java.lang.Objectorg.objectweb.telosys.rpl.xml.output.GenericXmlOutput
Set of generic methods to generate the standard XML reponse fragments
Constructor Summary | |
GenericXmlOutput()
|
Method Summary | |
static DataOutputError |
generateDataElement(java.lang.Object oDataElement,
java.lang.String sElementName,
java.io.PrintWriter out)
Generates an element data tag for the given object instance The element can be : a Telosys collection ( VOList, DataSet ), a basic Java object ( String, Float, Boolean, Date, .. ), a specific application Value Object with a specific XML mapper |
static void |
generateErrors(GenericResponse resp,
java.io.PrintWriter out)
Generates the "errors" tag |
static void |
generateExceptions(GenericResponse resp,
java.io.PrintWriter out)
Generates the "exceptions" tag |
static void |
generateMessages(GenericResponse resp,
java.io.PrintWriter out)
Generates the "messages" tag |
static void |
generateOutputErrors(DataOutputError dataError,
ViewOutputError viewError,
java.io.PrintWriter out)
Generates the "output-errors" if necessary from the given DataOutputError and ViewOutputError |
static void |
generateOutputErrors(java.util.LinkedList dataErrors,
java.util.LinkedList viewErrors,
java.io.PrintWriter out)
Generates the "output-errors" if necessary from the given collections of DataError and ViewError |
static void |
generateReturnClosingTag(java.io.PrintWriter out)
Generates the closing "return" tag |
static void |
generateReturnOpeningTag(GenericResponse resp,
java.io.PrintWriter out)
Generates the opening "return" tag |
static void |
generateValues(GenericResponse resp,
java.io.PrintWriter out)
Generates the "values" tag |
static ViewOutputError |
generateViewContent(java.io.PrintWriter out,
java.lang.String sViewName,
java.lang.String sRenderer,
javax.servlet.http.HttpServletRequest httpRequest,
javax.servlet.http.HttpServletResponse httpResponse)
Generates a response view content using the given "renderer" |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public GenericXmlOutput()
Method Detail |
public static void generateReturnOpeningTag(GenericResponse resp, java.io.PrintWriter out)
resp
- out
- public static void generateReturnClosingTag(java.io.PrintWriter out)
out
- public static void generateExceptions(GenericResponse resp, java.io.PrintWriter out)
resp
- out
- public static void generateErrors(GenericResponse resp, java.io.PrintWriter out)
resp
- out
- public static void generateMessages(GenericResponse resp, java.io.PrintWriter out)
resp
- out
- public static void generateValues(GenericResponse resp, java.io.PrintWriter out)
resp
- out
- public static final ViewOutputError generateViewContent(java.io.PrintWriter out, java.lang.String sViewName, java.lang.String sRenderer, javax.servlet.http.HttpServletRequest httpRequest, javax.servlet.http.HttpServletResponse httpResponse)
out
- sViewName
- the view tag namesRenderer
- httpRequest
- httpResponse
-
public static void generateOutputErrors(DataOutputError dataError, ViewOutputError viewError, java.io.PrintWriter out)
dataError
- viewError
- out
- public static void generateOutputErrors(java.util.LinkedList dataErrors, java.util.LinkedList viewErrors, java.io.PrintWriter out)
dataErrors
- viewErrors
- out
- public static final DataOutputError generateDataElement(java.lang.Object oDataElement, java.lang.String sElementName, java.io.PrintWriter out)
oDataElement
- sElementName
- out
-