fi.iki.hsivonen.verifierservlet
Class Html5ConformanceCheckerTransaction

java.lang.Object
  extended by fi.iki.hsivonen.verifierservlet.VerifierServletTransaction
      extended by fi.iki.hsivonen.verifierservlet.Html5ConformanceCheckerTransaction
All Implemented Interfaces:
DoctypeHandler

public class Html5ConformanceCheckerTransaction
extends VerifierServletTransaction


Field Summary
private static char[] FAILURE_HTML
           
private static char[] FAILURE_XHTML
           
private static char[] RESULTS_TITLE
           
private static char[] SERVICE_TITLE
           
private static char[] SUCCESS_HTML
           
private static char[] SUCCESS_XHTML
           
private static char[] TECHNOLOGY_PREVIEW
           
private  boolean usingHtml
           
 
Fields inherited from class fi.iki.hsivonen.verifierservlet.VerifierServletTransaction
contentHandler, document, documentInput, emitter, entityResolver, errorHandler, htmlParser, httpRes, reader, validator, XHTML5_SCHEMA
 
Fields inherited from interface fi.iki.hsivonen.htmlparser.DoctypeHandler
ANY_DOCTYPE, DOCTYPE_HTML401_STRICT, DOCTYPE_HTML401_TRANSITIONAL, DOCTYPE_HTML5
 
Constructor Summary
Html5ConformanceCheckerTransaction(HttpServletRequest request, HttpServletResponse response)
           
 
Method Summary
 void doctype(int doctype)
           
protected  void emitFailure()
           
protected  void emitFormContent()
           
protected  void emitSuccess()
           
(package private)  void emitTitle(boolean markupAllowed)
           
protected  void loadDocAndSetupParser()
           
protected  void setup()
           
protected  void tryToSetupValidator()
           
 
Methods inherited from class fi.iki.hsivonen.verifierservlet.VerifierServletTransaction
doGet, emitDocDuration, emitDocField, emitForm, emitLaxTypeField, emitParserOptions, emitPresetOptions, emitSchemaDuration, emitSchemaField, emitTotalDuration, rootNamespace, scrub, 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

SUCCESS_HTML

private static final char[] SUCCESS_HTML

SUCCESS_XHTML

private static final char[] SUCCESS_XHTML

FAILURE_HTML

private static final char[] FAILURE_HTML

FAILURE_XHTML

private static final char[] FAILURE_XHTML

usingHtml

private boolean usingHtml
Constructor Detail

Html5ConformanceCheckerTransaction

public Html5ConformanceCheckerTransaction(HttpServletRequest request,
                                          HttpServletResponse response)
Method Detail

emitSuccess

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

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:
fi.iki.hsivonen.verifierservlet.VerifierServletTransaction#setupAndStartEmission()

emitTitle

void emitTitle(boolean markupAllowed)
         throws SAXException
Overrides:
emitTitle in class VerifierServletTransaction
Throws:
SAXException
See Also:
fi.iki.hsivonen.verifierservlet.VerifierServletTransaction#emitTitle()

tryToSetupValidator

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

emitFailure

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

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
Specified by:
doctype in interface DoctypeHandler
Overrides:
doctype in class VerifierServletTransaction
Throws:
SAXException
See Also:
VerifierServletTransaction.doctype(int)