/** * Defines a DTD used to validate the report definition. Your XMLParser must be a validating parser for this feature * to work. * * @param publicID the public ID. * @param location the URL. * @return A boolean. */ public boolean setDTDLocation( final String publicID, final URL location ) { if ( isValid( location ) ) { this.dtds.put( publicID, location ); return true; } else { logger.warn( "Validate location failed for " + publicID + " location: " + location ); return false; } }
/** * Defines a DTD used to validate the report definition. Your XMLParser must be a validating parser for this feature * to work. * * @param systemId the system ID for the DTD. * @param publicID the public ID. * @param location the URL. * @return A boolean. */ public boolean setDTDLocation( final String publicID, final String systemId, final URL location ) { if ( isValid( location ) ) { this.dtds.put( publicID, location ); this.dtds.put( systemId, location ); return true; } else { logger.warn( "Validate location failed for " + publicID + " location: " + location ); return false; } }