org.jasig.portal.utils
Class DTDResolver

java.lang.Object
  extended by org.jasig.portal.utils.DTDResolver
All Implemented Interfaces:
EntityResolver

public class DTDResolver
extends Object
implements EntityResolver

Provides a means to resolve uPortal DTDs

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

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

Constructor Detail

DTDResolver

public DTDResolver()
Constructor for DTDResolver


DTDResolver

public DTDResolver(String dtdName)
Constructor for DTDResolver

Parameters:
dtdName - the name of the dtd
Method Detail

resolveEntity

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

Specified by:
resolveEntity in interface 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

getResourceAsStream

public InputStream getResourceAsStream(String resource)


Copyright © 2010 Jasig. All Rights Reserved.