uPortal 2.4.1
API Documentation

org.jasig.portal.utils
Class DTDResolver

java.lang.Object
  extended byorg.jasig.portal.utils.DTDResolver
All Implemented Interfaces:
org.xml.sax.EntityResolver

public class DTDResolver
extends java.lang.Object
implements org.xml.sax.EntityResolver

Provides a means to resolve uPortal DTDs

Version:
$Revision: 1.12 $
Author:
Peter Kharchenko, pkharchenko@unicon.net, Ken Weiner, kweiner@unicon.net, Dave Wallace, dwallace@udel.edu modifications

Constructor Summary
DTDResolver()
          Constructor for DTDResolver
DTDResolver(java.lang.String dtdName)
          Constructor for DTDResolver
 
Method Summary
 org.xml.sax.InputSource resolveEntity(java.lang.String publicId, java.lang.String systemId)
          Sets up a new input source based on the dtd specified in the xml document
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DTDResolver

public DTDResolver()
Constructor for DTDResolver


DTDResolver

public DTDResolver(java.lang.String dtdName)
Constructor for DTDResolver

Parameters:
dtdName - the name of the dtd
Method Detail

resolveEntity

public org.xml.sax.InputSource resolveEntity(java.lang.String publicId,
                                             java.lang.String systemId)
Sets up a new input source based on the dtd specified in the xml document

Specified by:
resolveEntity in interface org.xml.sax.EntityResolver
Parameters:
publicId - the public ID
systemId - the system ID
Returns:
an input source based on the dtd specified in the xml document or null if we don't have a dtd that matches systemId or publicId

uPortal 2.4.1
API Documentation