Class AbstractHTTPAbstract

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

Implements

IOnmsHTTP

Hierarchy (view full)

Implements

Constructors

Accessors

Methods

  • Attempt to extract the data from a response.

    Parameters

    • response: any

    Returns any

  • Get the [[OnmsServer]] object that should be used for making requests. Favors the one passed in the [[OnmsHTTPOptions]], otherwise it falls back to the default server associated with the HTTP implementation.

    Parameters

    Returns OnmsServer

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

    Returns void

  • 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

  • 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