XmlResolver - Class to download xml resources from internet to local paths

Hierarchy

  • XmlResolver

Constructors

  • Parameters

    • localPath: null | string = null
    • downloader: null | DownloaderInterface = null

    Returns XmlResolver

Properties

_downloader: DownloaderInterface
_localPath: string = ''
TYPE_CER: string = 'CER'
TYPE_XSD: string = 'XSD'
TYPE_XSLT: string = 'XSLT'

Methods

  • Returns DownloaderInterface

  • Return the configured localPath. An empty string means that it is not configured and method resolve will return the same url as received

    Returns string

  • Return when a local path has been set

    Returns boolean

  • Parameters

    • resource: string
    • extension: string

    Returns boolean

  • Create a new Retriever depending on the type parameter, only allow TYPE_XSLT and TYPE_XSD

    Parameters

    • type: string

    Returns undefined | RetrieverInterface

  • Returns XsdRetriever

  • Returns XsltRetriever

  • Parameters

    • url: string

    Returns string

  • Parameters

    • resource: string
    • type: string = ''

    Returns Promise<string>

  • Parameters

    • version: string

    Returns Promise<string>

  • Set the downloader object. If send a null value the object return by defaultDownloader will be set.

    Parameters

    • downloader: null | DownloaderInterface = null

      downloader implementation

    Returns void

  • Set the localPath to the specified value. If localPath is null then the value of defaultLocalPath is used.

    Parameters

    • localPath: null | string = null

      values: '' -- no resolve, null -- default path, anything else is the path

    Returns void

  • Returns DownloaderInterface

  • Returns string

Generated using TypeDoc