Options
All
  • Public
  • Public/Protected
  • All
Menu

Url object class which can perform various transformations on url strings.

Hierarchy

  • UrlString

Index

Constructors

constructor

Accessors

urlString

  • get urlString(): string

Methods

getHash

  • getHash(): string

getUrlComponents

  • getUrlComponents(): IUri
  • Parses out the components from a url string.

    Returns IUri

    An object with the various components. Please cache this value insted of calling this multiple times on the same url.

replaceTenantPath

  • replaceTenantPath(tenantId: string): UrlString

validateAsUri

  • validateAsUri(): void

Static appendQueryString

  • appendQueryString(url: string, queryString: string): string
  • Given a url and a query string return the url with provided query string appended

    Parameters

    • url: string
    • queryString: string

    Returns string

Static canonicalizeUri

  • canonicalizeUri(url: string): string

Static constructAuthorityUriFromObject

Static getAbsoluteUrl

  • getAbsoluteUrl(relativeUrl: string, baseUrl: string): string

Static getDeserializedHash

Static getDomainFromUrl

  • getDomainFromUrl(url: string): string

Static hashContainsKnownProperties

  • hashContainsKnownProperties(hash: string): boolean

Static parseHash

  • parseHash(hashString: string): string
  • Parses hash string from given string. Returns empty string if no hash symbol is found.

    Parameters

    • hashString: string

    Returns string

Static removeHashFromUrl

  • removeHashFromUrl(url: string): string

Generated using TypeDoc