Options
All
  • Public
  • Public/Protected
  • All
Menu

Class OnmsServer

Hierarchy

  • OnmsServer

Index

Constructors

Properties

Accessors

Methods

Constructors

constructor

  • Construct a new OnmsServer object representing a remote server.

    constructor

    Parameters

    • Optional name: string
    • Optional url: string
    • Optional auth: OnmsAuthConfig | string
    • Optional password: string

    Returns OnmsServer

Properties

auth

The authorization configuration associated with the server

id

id: string

A unique identifier for this server

metadata

metadata: ServerMetadata

The capabilities of the server

name

name: string

A name associated with this server (undefined is allowed)

url

url: string

The base URL to the server

Accessors

host

  • get host(): any
  • Return the hostname portion of the URL associated with this server.

    Returns any

Methods

clone

  • Create a new OnmsServer object from this existing one.

    Returns OnmsServer

resolveURL

  • resolveURL(forFragment?: string): any
  • Given a relative URL fragment, construct a URL for that fragment on the server.

    Parameters

    • Optional forFragment: string

      the URL fragment to append to the server URL

    Returns any

    a complete URL

toString

  • toString(): string
  • a pretty string representation of this server

    Returns string

Generated using TypeDoc