public class XMLToDOM extends DynamoServlet
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
.
Modifier and Type | Field and Description |
---|---|
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
|
mAllowCleanupRequest, mParameters
SERVLET_INFO_KEY
SERVICE_INFO_KEY
DEFAULT_LOG_TRACE_STATUS
DEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS
Constructor and Description |
---|
XMLToDOM() |
Modifier and Type | Method and Description |
---|---|
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
|
doDelete, doGet, doPost, doPut, getParameter, getParameters, getServletContext, init, service, service, setParameter
destroy, getServletConfig, getServletInfo, setServletInfo
getAverageRequestHandlingTime, getHandledRequestCount, getRequestStartTime, getTotalRequestHandlingTime, isKeepingStatistics, notifyHandledRequest, resetStatistics, setKeepingStatistics
addLogListener, createAdminServlet, doStartService, doStopService, getAbsoluteName, getAdminServlet, getAdminServletOutputStreamEncoding, getLoggingForVlogging, getLogListenerCount, getLogListeners, getName, getNameContext, getNucleus, getRoot, getServiceConfiguration, getServiceInfo, isAdminServletUseServletOutputStream, isLoggingDebug, isLoggingError, isLoggingInfo, isLoggingTrace, isLoggingWarning, isRunning, logDebug, logDebug, logDebug, logError, logError, logError, logInfo, logInfo, logInfo, logTrace, logTrace, logTrace, logWarning, logWarning, logWarning, nameContextElementBound, nameContextElementUnbound, removeLogListener, reResolveThis, resolveName, resolveName, resolveName, resolveName, sendLogEvent, setAdminServletOutputStreamEncoding, setAdminServletUseServletOutputStream, setLoggingDebug, setLoggingError, setLoggingInfo, setLoggingTrace, setLoggingWarning, setNucleus, setServiceInfo, startService, stopService
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning
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
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 requestjavax.servlet.ServletException
- an application specific error occurred
processing this requestjava.io.IOException
- an error occurred reading data from the request
or writing data to the response.