HtmlExternalResolver

HtmlExternalResolver class

Callback object used by HTML import routine to obtain referrenced objects such as images. Using this resolver could create a vulnurability when client provided HTML file will make server software to obtain local or network file. Use with caution. It is recommended not to specify HtmlExternalResolver at all (only embedded objects will be read) or create some subclass which checks if specified uri is valid.

HtmlExternalResolver

NameDescription
HtmlExternalResolver()

Returns: HtmlExternalResolver


getEntity

NameDescription
getEntity (String)Maps a URI to an object containing the actual resource.

Parameters:

NameTypeDescription
absoluteUriStringAbsolute URI to the object.

Returns: InputStream


resolveUri

NameDescription
resolveUri (String, String)Resolves the absolute URI from the base and relative URIs.

Parameters:

NameTypeDescription
baseUriStringBase URI of linking objects
relativeUriStringRelative URI to the linked object.

Returns: String