This documentation is for an old version of fiftyfive-wicket (2.0.9).


fiftyfive.wicket.test.dtd
Class XHtmlEntityResolver

java.lang.Object
  extended by fiftyfive.wicket.test.dtd.XHtmlEntityResolver
All Implemented Interfaces:
EntityResolver

public class XHtmlEntityResolver
extends Object
implements EntityResolver

Resolves XHTML entities by using locally installed DTDs. This means that any www.w3.org DTD will be loaded from the filesystem instead of making an HTTP request. This greatly improves the speed of the parser when validating XHTML documents.


Constructor Summary
XHtmlEntityResolver()
           
 
Method Summary
protected  void onNotFound(String publicId, String systemId)
          This method is called when a w3 entity cannot be found on the local filesystem.
 InputSource resolveEntity(String publicId, String systemId)
          Resolves an entity using locally installed DTDs if possible.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XHtmlEntityResolver

public XHtmlEntityResolver()
Method Detail

resolveEntity

public InputSource resolveEntity(String publicId,
                                 String systemId)
                          throws SAXException,
                                 IOException
Resolves an entity using locally installed DTDs if possible. Otherwise returns null to delegate to the default resolver.

Specified by:
resolveEntity in interface EntityResolver
Throws:
SAXException
IOException

onNotFound

protected void onNotFound(String publicId,
                          String systemId)
This method is called when a w3 entity cannot be found on the local filesystem. Default implementation does nothing. This is a hook for testing purposes.



Copyright © 2011 55 Minutes. All Rights Reserved.