|
DLESE Tools v1.6.0 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.dlese.dpc.webapps.servlets.filters.FilterCore
org.dlese.dpc.webapps.servlets.filters.XMLPostProcessingFilter
org.dlese.dpc.schemedit.input.RecordValidationFilter
public final class RecordValidationFilter
Filter that validates XML and updates dcsDataRecord with the results of
validation. Based on XMLValidationFilter
| Constructor Summary | |
|---|---|
RecordValidationFilter()
|
|
| Method Summary | |
|---|---|
void |
destroy()
Destroy is called at application shut-down time. |
protected String |
getValidationMessage(String xml,
ServletRequest req)
Performs XML post-processing and gzipping of the response. |
void |
init(FilterConfig config)
Init is called once at application start-up. |
protected void |
prtln(String s)
Output a line of text to standard out, with datestamp, if debug is set to true. |
protected void |
setDebug(boolean db)
Sets the debug attribute of the RecordValidationFilter object |
protected String |
xmlToHtml(String xml)
Get html-displayable version of provided xml |
| Methods inherited from class org.dlese.dpc.webapps.servlets.filters.XMLPostProcessingFilter |
|---|
doFilter, prtlnErr, setDebugz |
| Methods inherited from class org.dlese.dpc.webapps.servlets.filters.FilterCore |
|---|
getDateStamp, handleErrorCodes, isGzipSupported, prtlnCore, writeGzipResponse, writeRegularResponse |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RecordValidationFilter()
| Method Detail |
|---|
protected String getValidationMessage(String xml,
ServletRequest req)
getValidationMessage in class XMLPostProcessingFilterrequest - The requestresponse - The responsechain - The chain of Filters
ServletException - Iff error
IOException - Iff IO errorprotected String xmlToHtml(String xml)
XMLPostProcessingFilter
xmlToHtml in class XMLPostProcessingFilterxml - xml to be displayed as html
public void init(FilterConfig config)
throws ServletException
init in interface Filterinit in class XMLPostProcessingFilterconfig - The FilterConfig object that holds the
ServletContext and init information.
ServletException - If an error occurspublic void destroy()
destroy in interface Filterdestroy in class XMLPostProcessingFilterprotected void prtln(String s)
prtln in class XMLPostProcessingFilters - The String that will be output.protected void setDebug(boolean db)
db - The new debug value
|
DLESE Tools v1.6.0 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||