Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ActorAbstractMediaTypedFixed<HI, HT, HO>

Type parameters

  • HI

  • HT

  • HO

Hierarchy

Index

Constructors

constructor

Properties

Readonly beforeActors

Readonly bus

Readonly mediaTypeFormats

mediaTypeFormats: Record<string, string>

A hash of media types, with media type name as key, and its format IRI as value.

Readonly mediaTypes

mediaTypes: Record<string, number>

A hash of media types, with media type name as key, and its priority as value. Priorities are numbers between [0, 1].

Readonly name

name: string

Readonly priorityScale

priorityScale: number

A multiplier for media type priorities. This can be used for keeping the original media types in place, but scaling all of their scores with a certain value.

Methods

deinitialize

  • deinitialize(): Promise<any>
  • Deinitialize this actor. This should be used for cleaning up things when the application is shut down, such as closing files and removing temporary files.

    Returns Promise<any>

    A promise that resolves when the actor has been deinitialized.

Protected getDefaultLogData

  • getDefaultLogData(context: undefined | ActionContext, data?: () => any): any

getMediaTypeFormats

  • getMediaTypeFormats(context: ActionContext): Promise<Record<string, string>>

getMediaTypes

  • getMediaTypes(context: ActionContext): Promise<Record<string, number>>

initialize

  • initialize(): Promise<any>

Protected logDebug

  • logDebug(context: undefined | ActionContext, message: string, data?: () => any): void

Protected logError

  • logError(context: undefined | ActionContext, message: string, data?: () => any): void

Protected logFatal

  • logFatal(context: undefined | ActionContext, message: string, data?: () => any): void

Protected logInfo

  • logInfo(context: undefined | ActionContext, message: string, data?: () => any): void

Protected logTrace

  • logTrace(context: undefined | ActionContext, message: string, data?: () => any): void

Protected logWarn

  • logWarn(context: undefined | ActionContext, message: string, data?: () => any): void

run

Abstract runHandle

  • runHandle(action: HI, mediaType?: string, context?: ActionContext): Promise<HO>

runObservable

test

testHandle

  • testHandle(action: HI, mediaType: string, context: ActionContext): Promise<HT>

Abstract testHandleChecked

  • testHandleChecked(action: HI, context: ActionContext): Promise<HT>

testMediaType

testMediaTypeFormats

Static getContextLogger

Generated using TypeDoc