RestOperations class

Implementers

Constructors

RestOperations()
RestOperations.withName(String name)

Properties

componentName ↔ String
read / write
counters ↔ CompositeCounters
read / write
dependencyResolver ↔ DependencyResolver
read / write
logger ↔ CompositeLogger
read / write
hashCode → int
The hash code for this object. [...]
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

configure(ConfigParams config) → void
Configures component by passing configuration parameters. [...]
getCorrelationId(RequestContext req) → dynamic
getFilterParams(RequestContext req) → FilterParams
getPagingParams(RequestContext req) → PagingParams
instrument(String correlationId, String name) → Timing
instrumentError(String correlationId, String name, dynamic err, [bool reerror = false]) → void
invoke(String operation) → dynamic Function(RequestContext req, ResponseContext res)
safeInvoke(RequestContext req, ResponseContext res, String name, dynamic operation(), dynamic error(Exception err)) → Future
sendBadRequest(RequestContext req, ResponseContext res, String message) → void
sendConflict(RequestContext req, ResponseContext res, String message) → void
sendCreatedResult(RequestContext req, ResponseContext res, dynamic err, dynamic result) → void
sendDeletedResult(RequestContext req, ResponseContext res, dynamic err, dynamic result) → void
sendEmptyResult(RequestContext req, ResponseContext res, dynamic err) → void
sendError(RequestContext req, ResponseContext res, dynamic error) → void
sendInternalError(RequestContext req, ResponseContext res, String message) → void
sendNotFound(RequestContext req, ResponseContext res, String message) → void
sendResult(RequestContext req, ResponseContext res, dynamic err, dynamic result) → void
sendServerUnavailable(RequestContext req, ResponseContext res, String message) → void
sendSessionExpired(RequestContext req, ResponseContext res, String message) → void
sendUnauthorized(RequestContext req, ResponseContext res, String message) → void
setReferences(IReferences references) → void
Sets references to dependent components. [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() → String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) → bool
The equality operator. [...]
inherited