Abstract
Create a new HTTP instance.
Optional
server: OnmsServerA server object for immediate configuration.
Optional
timeout: numberHow long to wait until timing out requests.
The default set of HTTP options associated with this ReST client.
The default options used when making requests with this instance.
The server associated with this HTTP implementation.
The server associated with this instance.
Abstract
getMake an HTTP GET call. This must be implemented by the concrete implementation.
Optional
options: OnmsHTTPOptionsProtected
getProtected
getGet the union of [[OnmsHTTPOptions]] based on the passed options, defaults, and options in the [[OnmsServer]] associated with this request. Order of precedence is passed options -> server options -> default options.
Optional
options: OnmsHTTPOptionsProtected
getGet 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.
Optional
options: OnmsHTTPOptionsAbstract
headMake an HTTP HEAD call. This must be implemented by the concrete implementation.
Optional
options: OnmsHTTPOptionsAbstract
httpMake an HTTP DELETE call. This must be overridden by the concrete implementation.
Optional
options: OnmsHTTPOptionsProtected
onAbstract
postMake an HTTP POST call. This must be overridden by the concrete implementation.
Optional
options: OnmsHTTPOptionsAbstract
putMake an HTTP PUT call. This must be overridden by the concrete implementation.
Optional
options: OnmsHTTPOptionsProtected
transformJSONProtected
transformXML
Abstract implementation of the OnmsHTTP interface meant to be extended by a concrete class.
Implements
IOnmsHTTP