Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AbstractHTTP Abstract

Abstract implementation of the OnmsHTTP interface meant to be extended by a concrete class.

implements

IOnmsHTTP

Hierarchy

  • AbstractHTTP

Implements

Index

Constructors

Accessors

Methods

  • getData(response: any): any
  • onSetServer(): void
  • Implementers should override this method if they have actions that need to be performed (like clearing a cache) when server settings change.

    Returns void

  • transformJSON(data: any): any
  • A convenience method for implementers to use to turn JSON into a javascript object. Use this to process a JSON response before returning it in an OnmsResult object.

    Parameters

    • data: any

    Returns any

  • transformXML(data: any): any
  • A convenience method for implementers to use to turn XML into a javascript object. Use this to process an XML response before returning it in an OnmsResult object.

    Parameters

    • data: any

    Returns any

Generated using TypeDoc