nu.validator.servlet
Class Html5ConformanceCheckerTransaction

java.lang.Object
  extended by nu.validator.servlet.VerifierServletTransaction
      extended by nu.validator.servlet.Html5ConformanceCheckerTransaction
All Implemented Interfaces:
DocumentModeHandler

public class Html5ConformanceCheckerTransaction
extends VerifierServletTransaction


Field Summary
private static String FAILURE_HTML
           
private static String FAILURE_XHTML
           
private static char[] FOR
           
private static char[] RESULTS_TITLE
           
private static char[] SERVICE_TITLE
           
private static String SUCCESS_HTML
           
private static String SUCCESS_XHTML
           
private static char[] TECHNOLOGY_PREVIEW
           
private  boolean usingHtml
           
 
Fields inherited from class nu.validator.servlet.VerifierServletTransaction
contentHandler, contentTypeParser, document, documentInput, emitter, entityResolver, errorHandler, HTML5_SCHEMA, htmlParser, httpRes, reader, validator, XHTML1STRICT_SCHEMA, XHTML1TRANSITIONAL_SCHEMA, XHTML5_SCHEMA, xmlParser
 
Constructor Summary
Html5ConformanceCheckerTransaction(HttpServletRequest request, HttpServletResponse response)
           
 
Method Summary
 void doctype(int doctype)
           
protected  void emitFormContent()
           
(package private)  void emitTitle(boolean markupAllowed)
           
protected  String failureMessage()
           
protected  void loadDocAndSetupParser()
           
protected  void setup()
           
protected  String successMessage()
           
protected  void tryToSetupValidator()
           
 
Methods inherited from class nu.validator.servlet.VerifierServletTransaction
documentMode, emitDocDuration, emitDocField, emitForm, emitLaxTypeField, emitParserOptions, emitPresetOptions, emitSchemaDuration, emitSchemaField, emitShowSourceField, emitTotalDuration, loadDocumentInput, newHtmlParser, rootNamespace, scrub, service, setAcceptAllKnownXmlTypes, setAllowGenericXml, setAllowHtml, setAllowRnc, setAllowXhtml, setupXmlParser, validate, validatorByDoctype, willValidate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SERVICE_TITLE

private static final char[] SERVICE_TITLE

TECHNOLOGY_PREVIEW

private static final char[] TECHNOLOGY_PREVIEW

RESULTS_TITLE

private static final char[] RESULTS_TITLE

FOR

private static final char[] FOR

SUCCESS_HTML

private static final String SUCCESS_HTML
See Also:
Constant Field Values

SUCCESS_XHTML

private static final String SUCCESS_XHTML
See Also:
Constant Field Values

FAILURE_HTML

private static final String FAILURE_HTML
See Also:
Constant Field Values

FAILURE_XHTML

private static final String FAILURE_XHTML
See Also:
Constant Field Values

usingHtml

private boolean usingHtml
Constructor Detail

Html5ConformanceCheckerTransaction

public Html5ConformanceCheckerTransaction(HttpServletRequest request,
                                          HttpServletResponse response)
Method Detail

successMessage

protected String successMessage()
                         throws SAXException
Overrides:
successMessage in class VerifierServletTransaction
Returns:
Throws:
SAXException
See Also:
VerifierServletTransaction.successMessage()

loadDocAndSetupParser

protected void loadDocAndSetupParser()
                              throws SAXException,
                                     IOException,
                                     IncorrectSchemaException,
                                     SAXNotRecognizedException,
                                     SAXNotSupportedException
Overrides:
loadDocAndSetupParser in class VerifierServletTransaction
Throws:
SAXException
SAXNotRecognizedException
SAXNotSupportedException
IOException
IncorrectSchemaException
See Also:
VerifierServletTransaction.loadDocAndSetupParser()

setup

protected void setup()
              throws ServletException
Overrides:
setup in class VerifierServletTransaction
Throws:
ServletException
See Also:
nu.validator.servlet.VerifierServletTransaction#setupAndStartEmission()

emitTitle

void emitTitle(boolean markupAllowed)
         throws SAXException
Overrides:
emitTitle in class VerifierServletTransaction
Throws:
SAXException
See Also:
nu.validator.servlet.VerifierServletTransaction#emitTitle()

tryToSetupValidator

protected void tryToSetupValidator()
                            throws SAXException,
                                   IOException,
                                   IncorrectSchemaException
Overrides:
tryToSetupValidator in class VerifierServletTransaction
Throws:
SAXException
IOException
IncorrectSchemaException
See Also:
VerifierServletTransaction.tryToSetupValidator()

failureMessage

protected String failureMessage()
                         throws SAXException
Overrides:
failureMessage in class VerifierServletTransaction
Throws:
SAXException
See Also:
VerifierServletTransaction.failureMessage()

emitFormContent

protected void emitFormContent()
                        throws SAXException
Overrides:
emitFormContent in class VerifierServletTransaction
Throws:
SAXException
See Also:
VerifierServletTransaction.emitFormContent()

doctype

public void doctype(int doctype)
             throws SAXException
Throws:
SAXException
See Also:
nu.validator.servlet.VerifierServletTransaction#doctype(int)