Options
All
  • Public
  • Public/Protected
  • All
Menu

Handles requests for the site specially to inject the true principal if the user is authed.

Hierarchy

  • SiteHandler

Implements

Index

Constructors

constructor

  • new SiteHandler(app: ViewerApplication, siteJsonGetter: function, siteJsonSetter: function, unhackedRequesthandler: function): SiteHandler
  • Parameters

    • app: ViewerApplication
    • siteJsonGetter: function

      Gets the stored site JSON. The key passed in comes from the rule parameter.

        • (key: string): Promise<any>
        • Parameters

          • key: string

          Returns Promise<any>

    • siteJsonSetter: function
        • (key: string, value: string): Promise<void>
        • Parameters

          • key: string
          • value: string

          Returns Promise<void>

    • unhackedRequesthandler: function

      Unhacked esri.request.

    Returns SiteHandler

Properties

app

name

name: string

siteJsonGetter

siteJsonGetter: function

Type declaration

    • (key: string): Promise<any>
    • Parameters

      • key: string

      Returns Promise<any>

siteJsonSetter

siteJsonSetter: function

Type declaration

    • (key: string, value: string): Promise<void>
    • Parameters

      • key: string
      • value: string

      Returns Promise<void>

unhackedRequesthandler

unhackedRequesthandler: function

Type declaration

Methods

handle