* @see org.w3c.dom.ls.LSResourceResolver#resolveResource(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)
*/
@Override
public LSInput resolveResource(String type, String namespaceURI, String publicId, String systemId, String baseURI)
{
LSInput input = this.implementation.createLSInput();
input.setPublicId(publicId);
input.setSystemId(systemId);
input.setBaseURI(baseURI);
Map<String, URL> namespaces = this.types.get(type);
if (namespaces != null)
{
URL url = namespaces.get(namespaceURI);
if (url != null)
{
// Substitute our system id, since we have a matching type and namespace
input.setSystemId(url.toString());
}
}
return input;
}