Skip to content

Commit fe52343

Browse files
committed
docs: documents EntityResolver input stream lifecycle expectations.
1 parent 943e39a commit fe52343

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

mock/soap/src/main/java/io/gatehill/imposter/plugin/soap/parser/WsdlRelativeXsdEntityResolver.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ class WsdlRelativeXsdEntityResolver(
2424
val xsdFile = File(wsdlDir.absoluteFile, systemId.replace("project://local/", ""))
2525
if (Files.isRegularFile(xsdFile.toPath()) && xsdFile.name.lowercase().endsWith(".xsd")) {
2626
logger.debug("Resolved XSD {} relative to WSDL path", xsdFile)
27+
28+
// according to the InputSource docs, the parser using this resolver
29+
// should manage the clean-up of the stream.
2730
return InputSource(FileInputStream(xsdFile))
2831
}
2932
return null

0 commit comments

Comments
 (0)