Polish contribution

See gh-29697
This commit is contained in:
Sam Brannen
2022-12-17 11:10:44 +01:00
parent 5965917d16
commit 8df4f927fd
2 changed files with 59 additions and 60 deletions

View File

@@ -120,18 +120,20 @@ public class ResourceEntityResolver extends DelegatingEntityResolver {
/**
* A fallback method for {@link #resolveEntity(String, String)} that is used when a
* "schema" entity (DTD or XSD) cannot be resolved as a local resource. The default
* behavior is to perform a remote resolution over HTTPS.
* behavior is to perform remote resolution over HTTPS.
* <p>Subclasses can override this method to change the default behavior.
* <ul>
* <li>Return {@code null} to fall back to the parser's
* {@linkplain org.xml.sax.EntityResolver#resolveEntity(String, String) default behavior}.</li>
* <li>Throw an exception to prevent remote resolution of the XSD or DTD.</li>
* <li>Throw an exception to prevent remote resolution of the DTD or XSD.</li>
* </ul>
* @param publicId the public identifier of the external entity being referenced,
* or null if none was supplied
* @param systemId the system identifier of the external entity being referenced
* @param systemId the system identifier of the external entity being referenced,
* representing the URL of the DTD or XSD
* @return an InputSource object describing the new input source, or null to request
* that the parser open a regular URI connection to the system identifier.
* that the parser open a regular URI connection to the system identifier
* @since 6.0.4
*/
@Nullable
protected InputSource resolveSchemaEntity(@Nullable String publicId, String systemId) {