com.aspose.slides

Interfaces

Classes

Exceptions

com.aspose.slides

Class HtmlExternalResolver

  • java.lang.Object
    • com.aspose.slides.HtmlExternalResolver
  • All Implemented Interfaces:
    IExternalResourceResolver, IHtmlExternalResolver

    Deprecated. 
    Obsolete. Use ExternalResourceResolver instead. Will be removed in 17.12 release.

    @Deprecated
    public class HtmlExternalResolver
    extends java.lang.Object
    implements IHtmlExternalResolver

    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.
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method and Description
      java.io.InputStream getEntity(java.lang.String absoluteUri)
      Deprecated. 
      Maps a URI to an object containing the actual resource.
      java.lang.String resolveUri(java.lang.String baseUri, java.lang.String relativeUri)
      Deprecated. 
      Resolves the absolute URI from the base and relative URIs.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • HtmlExternalResolver

        public HtmlExternalResolver()
        Deprecated. 
    • Method Detail

      • resolveUri

        public java.lang.String resolveUri(java.lang.String baseUri,
                                           java.lang.String relativeUri)
        Deprecated. 

        Resolves the absolute URI from the base and relative URIs.

        Specified by:
        resolveUri in interface IExternalResourceResolver
        Parameters:
        baseUri - Base URI of linking objects
        relativeUri - Relative URI to the linked object.
        Returns:
        Absolute URI or null if the relative URI cannot be resolved.
      • getEntity

        public java.io.InputStream getEntity(java.lang.String absoluteUri)
        Deprecated. 

        Maps a URI to an object containing the actual resource.

        Specified by:
        getEntity in interface IExternalResourceResolver
        Parameters:
        absoluteUri - Absolute URI to the object.
        Returns:
        A InputStream object or null if resource cannot be streamed.