type

HxApiOp

abstract class HxApiOp : Obj

Base class for HTTP API operation processing

constructors

make

Subclasses must declare public no-arg constructor

methods

def

Op definition

name

Programmatic name of the op

onRequest

Process parsed request.

onService

Process an HTTP service call to this op

Slot Details

def

Def def()

Op definition

make

new make()

Subclasses must declare public no-arg constructor

name

Str name()

Programmatic name of the op

onRequest

abstract Grid onRequest(Grid req, HxContext cx)

Process parsed request. Default implentation attempts to eval an Axon function of the same name.

onService

virtual Void onService(WebReq req, WebRes res, HxContext cx)

Process an HTTP service call to this op