Options
All
  • Public
  • Public/Protected
  • All
Menu

An abstract patch handler.

A ConvertingPatchHandler converts a document to its intermediateType, handles the patch operation, and then converts back to its original type. This abstract class covers all of the above except of handling the patch operation, for which the abstract patch function has to be implemented.

In case there is no resource yet and a new one needs to be created, the patch function will be called without a Representation and the result will be converted to the defaultType.

Hierarchy

Index

Constructors

Protected constructor

Properties

Private Readonly converter

Protected Readonly defaultType

defaultType: string

Protected Readonly intermediateType

intermediateType: string

Protected Readonly logger

logger: Logger = ...

Methods

canHandle

handle

handleSafe

Protected Abstract patch

Protected toIntermediate