Options
All
  • Public
  • Public/Protected
  • All
Menu

A validator that determines whether the input is a URL that is defined by the Essentials site (i.e. the URL either matches the site endpoint or one of its services).

Hierarchy

Implements

Index

Constructors

constructor

Properties

app

Methods

Protected _allowUrl

  • _allowUrl(url: string): void
  • Parameters

    • url: string

    Returns void

Protected _extractUrls

  • _extractUrls(text: string): string[]
  • Parameters

    • text: string

    Returns string[]

Protected _initializeAllowedUrls

  • _initializeAllowedUrls(): Promise<void>
  • Returns Promise<void>

Protected _isMatch

  • _isMatch(allowedUrl: Location, testUrl: Location): boolean
  • Parameters

    • allowedUrl: Location
    • testUrl: Location

    Returns boolean

executeClearTrustedUrls

  • executeClearTrustedUrls(): void
  • Returns void

tryValidateSynchronously

  • tryValidateSynchronously(value: string): boolean
  • Parameters

    • value: string

    Returns boolean

validate

  • Parameters

    • value: string
    • Optional context: any

    Returns Promise<ValidationResult<string>>