|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object atg.nucleus.logging.VariableArgumentApplicationLoggingImpl atg.nucleus.GenericService atg.nucleus.TimedOperationService atg.nucleus.servlet.ServletService atg.nucleus.servlet.HttpServletService atg.servlet.DynamoServlet atg.droplet.xml.XMLToDOM
public class XMLToDOM
This droplet parses an XML document which is specified by the input parameter. The result of the parse will be bound to the document parameter, which can then be manipulated inside the output oparam.
These are the parameters for the XMLToDOM
droplet:
DOCTYPE
declaration.
Validation will be slower, but may help prevent problems later when
accessing parts of the XML document.
The legal values are: true
false
(default)nodtd
false
.
If there is no DOCTYPE
declaration, this
parameter has no effect.
document
parameter.
documentCache
property is null
.
Static files should almost always be served directly.
When no output oparam is present, the process is not just a
transparent conversion of the XML, since it can be validated or indented,
and it will loose any internal DTD subset.
This cycle of parsing, validation, and serialization
will be much slower than simply passing the file to the response,
but it can be useful for debugging during development.
When the DOM is serialized ot the page, it uses the
encoding and MIME type from the Dynamo servlet pipeline.
These are typically determined by the EncodingTyper
and MimeTyper
components, and the default values
will be ISO-8859-1
and text/html
.
Field Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
|
protected static java.lang.String |
DOCUMENT_PARAM
The name of the document output parameter |
protected static java.lang.String |
ERRORS_PARAM
The name of the errors outpu parameter |
protected static java.lang.String |
FAILURE_PARAM
The name of the failure open parameter |
protected static java.lang.String |
INPUT_PARAM
The name of the input input parameter |
protected static java.lang.String |
OUTPUT_PARAM
The name of the output open parameter |
protected static java.lang.String |
UNSET_PARAM
The name of the unset open parameter |
protected static java.lang.String |
VALIDATE_PARAM
The name of the validate input parameter |
Fields inherited from class atg.servlet.DynamoServlet |
---|
mAllowCleanupRequest, mParameters |
Fields inherited from class atg.nucleus.servlet.ServletService |
---|
SERVLET_INFO_KEY |
Fields inherited from class atg.nucleus.GenericService |
---|
SERVICE_INFO_KEY |
Fields inherited from interface atg.nucleus.logging.TraceApplicationLogging |
---|
DEFAULT_LOG_TRACE_STATUS |
Fields inherited from interface atg.nucleus.logging.ApplicationLogging |
---|
DEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS |
Constructor Summary | |
---|---|
XMLToDOM()
|
Method Summary | |
---|---|
DocumentCache |
getDocumentCache()
The DocumentCache used by this component. |
void |
service(DynamoHttpServletRequest pReq,
DynamoHttpServletResponse pRes)
Parse an XML document |
void |
setDocumentCache(DocumentCache pDocumentCache)
The DocumentCache used by this component |
Methods inherited from class atg.servlet.DynamoServlet |
---|
doDelete, doGet, doPost, doPut, getParameter, getParameters, getServletContext, service, service, setParameter |
Methods inherited from class atg.nucleus.servlet.ServletService |
---|
destroy, getServletConfig, getServletInfo, init, setServletInfo |
Methods inherited from class atg.nucleus.TimedOperationService |
---|
getAverageRequestHandlingTime, getHandledRequestCount, getRequestStartTime, getTotalRequestHandlingTime, isKeepingStatistics, notifyHandledRequest, resetStatistics, setKeepingStatistics |
Methods inherited from class atg.nucleus.logging.VariableArgumentApplicationLoggingImpl |
---|
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static java.lang.String CLASS_VERSION
protected static java.lang.String INPUT_PARAM
protected static java.lang.String VALIDATE_PARAM
protected static java.lang.String DOCUMENT_PARAM
protected static java.lang.String ERRORS_PARAM
protected static java.lang.String UNSET_PARAM
protected static java.lang.String FAILURE_PARAM
protected static java.lang.String OUTPUT_PARAM
Constructor Detail |
---|
public XMLToDOM()
Method Detail |
---|
public void setDocumentCache(DocumentCache pDocumentCache)
public DocumentCache getDocumentCache()
public void service(DynamoHttpServletRequest pReq, DynamoHttpServletResponse pRes) throws javax.servlet.ServletException, java.io.IOException
service
in class DynamoServlet
pReq
- the request to be processedpRes
- the response object for this request
javax.servlet.ServletException
- an application specific error occurred
processing this request
java.io.IOException
- an error occurred reading data from the request
or writing data to the response.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |