public class Html5ConformanceCheckerTransaction
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected AttributesImpl |
attrs |
protected org.xml.sax.ContentHandler |
contentHandler |
protected ContentTypeParser |
contentTypeParser |
protected DataUriEntityResolver |
dataRes |
protected java.lang.String |
document |
protected TypedInputSource |
documentInput |
protected XhtmlSaxEmitter |
emitter |
protected LocalCacheEntityResolver |
entityResolver |
protected MessageEmitterAdapter |
errorHandler |
protected static int |
HTML5_SCHEMA |
protected nu.validator.htmlparser.sax.HtmlParser |
htmlParser |
protected PrudentHttpEntityResolver |
httpRes |
protected ImageCollector |
imageCollector |
protected org.xml.sax.XMLReader |
reader |
protected javax.servlet.http.HttpServletRequest |
request |
protected com.thaiopensource.validate.Validator |
validator |
protected static int |
XHTML1STRICT_SCHEMA |
protected static int |
XHTML1TRANSITIONAL_SCHEMA |
protected static int |
XHTML5_SCHEMA |
protected SAXDriver |
xmlParser |
Constructor and Description |
---|
Html5ConformanceCheckerTransaction(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
Modifier and Type | Method and Description |
---|---|
void |
documentMode(nu.validator.htmlparser.common.DocumentMode mode,
java.lang.String publicIdentifier,
java.lang.String systemIdentifier,
boolean html4SpecificAdditionalErrorChecks) |
protected void |
emitFormContent() |
protected java.lang.String |
failureMessage() |
protected boolean |
isSimple() |
protected void |
loadDocAndSetupParser() |
protected void |
loadDocumentInput() |
protected void |
newHtmlParser() |
com.thaiopensource.validate.Schema |
resolveSchema(java.lang.String url,
com.thaiopensource.util.PropertyMap options) |
protected static java.lang.String |
scrub(java.lang.CharSequence s) |
protected void |
setAcceptAllKnownXmlTypes(boolean acceptAllKnownXmlTypes) |
protected void |
setAllowGenericXml(boolean allowGenericXml) |
protected void |
setAllowHtml(boolean allowHtml) |
protected void |
setAllowRnc(boolean allowRnc) |
protected void |
setAllowXhtml(boolean allowXhtml) |
protected void |
setErrorProfile() |
protected void |
setup() |
protected void |
setupXmlParser() |
protected java.lang.String |
shortenDataUri(java.lang.String uri) |
protected java.lang.String |
successMessage() |
protected void |
tryToSetupValidator() |
protected com.thaiopensource.validate.Validator |
validatorByDoctype(int schemaId) |
protected boolean |
willValidate() |
protected static final int HTML5_SCHEMA
protected static final int XHTML1STRICT_SCHEMA
protected static final int XHTML1TRANSITIONAL_SCHEMA
protected static final int XHTML5_SCHEMA
protected final javax.servlet.http.HttpServletRequest request
protected java.lang.String document
protected org.xml.sax.ContentHandler contentHandler
protected XhtmlSaxEmitter emitter
protected MessageEmitterAdapter errorHandler
protected final AttributesImpl attrs
protected LocalCacheEntityResolver entityResolver
protected com.thaiopensource.validate.Validator validator
protected nu.validator.htmlparser.sax.HtmlParser htmlParser
protected SAXDriver xmlParser
protected org.xml.sax.XMLReader reader
protected TypedInputSource documentInput
protected PrudentHttpEntityResolver httpRes
protected DataUriEntityResolver dataRes
protected ContentTypeParser contentTypeParser
protected ImageCollector imageCollector
public Html5ConformanceCheckerTransaction(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
protected boolean isSimple()
VerifierServletTransaction.isSimple()
protected java.lang.String successMessage() throws org.xml.sax.SAXException
org.xml.sax.SAXException
VerifierServletTransaction.successMessage()
protected void loadDocAndSetupParser() throws org.xml.sax.SAXException, java.io.IOException, com.thaiopensource.validate.IncorrectSchemaException, org.xml.sax.SAXNotRecognizedException, org.xml.sax.SAXNotSupportedException
org.xml.sax.SAXException
org.xml.sax.SAXNotRecognizedException
org.xml.sax.SAXNotSupportedException
java.io.IOException
com.thaiopensource.validate.IncorrectSchemaException
VerifierServletTransaction.loadDocAndSetupParser()
protected void setup() throws javax.servlet.ServletException
javax.servlet.ServletException
VerifierServletTransaction.setup()
protected void tryToSetupValidator() throws org.xml.sax.SAXException, java.io.IOException, com.thaiopensource.validate.IncorrectSchemaException
org.xml.sax.SAXException
java.io.IOException
com.thaiopensource.validate.IncorrectSchemaException
VerifierServletTransaction.tryToSetupValidator()
protected java.lang.String failureMessage() throws org.xml.sax.SAXException
org.xml.sax.SAXException
VerifierServletTransaction.failureMessage()
protected void emitFormContent() throws org.xml.sax.SAXException
org.xml.sax.SAXException
VerifierServletTransaction.emitFormContent()
protected static java.lang.String scrub(java.lang.CharSequence s)
protected boolean willValidate()
protected void setErrorProfile()
protected void newHtmlParser()
protected com.thaiopensource.validate.Validator validatorByDoctype(int schemaId) throws org.xml.sax.SAXException, java.io.IOException, com.thaiopensource.validate.IncorrectSchemaException
org.xml.sax.SAXException
java.io.IOException
com.thaiopensource.validate.IncorrectSchemaException
protected void setupXmlParser() throws org.xml.sax.SAXNotRecognizedException, org.xml.sax.SAXNotSupportedException
org.xml.sax.SAXNotRecognizedException
org.xml.sax.SAXNotSupportedException
public com.thaiopensource.validate.Schema resolveSchema(java.lang.String url, com.thaiopensource.util.PropertyMap options) throws org.xml.sax.SAXException, java.io.IOException, com.thaiopensource.validate.IncorrectSchemaException
resolveSchema
in interface com.thaiopensource.validate.SchemaResolver
org.xml.sax.SAXException
java.io.IOException
com.thaiopensource.validate.IncorrectSchemaException
protected java.lang.String shortenDataUri(java.lang.String uri)
public void documentMode(nu.validator.htmlparser.common.DocumentMode mode, java.lang.String publicIdentifier, java.lang.String systemIdentifier, boolean html4SpecificAdditionalErrorChecks) throws org.xml.sax.SAXException
documentMode
in interface nu.validator.htmlparser.common.DocumentModeHandler
org.xml.sax.SAXException
protected void setAcceptAllKnownXmlTypes(boolean acceptAllKnownXmlTypes)
acceptAllKnownXmlTypes
- ContentTypeParser.setAcceptAllKnownXmlTypes(boolean)
protected void setAllowGenericXml(boolean allowGenericXml)
allowGenericXml
- ContentTypeParser.setAllowGenericXml(boolean)
protected void setAllowHtml(boolean allowHtml)
allowHtml
- ContentTypeParser.setAllowHtml(boolean)
protected void setAllowRnc(boolean allowRnc)
allowRnc
- ContentTypeParser.setAllowRnc(boolean)
protected void setAllowXhtml(boolean allowXhtml)
allowXhtml
- ContentTypeParser.setAllowXhtml(boolean)
protected void loadDocumentInput() throws org.xml.sax.SAXException, java.io.IOException
org.xml.sax.SAXException
java.io.IOException