Options
All
  • Public
  • Public/Protected
  • All
Menu

Class GenericRequestDispatcher<Input, Output>

Generic implementation of RequestDispatcher.

Type parameters

  • Input

    generic type for input object sent to handler.

  • Output

    generic type for the handler return value.

Hierarchy

  • GenericRequestDispatcher

Implements

Index

Constructors

constructor

Properties

Protected errorMapper

errorMapper: ErrorMapper<Input, Output>

Protected handlerAdapters

handlerAdapters: Array<HandlerAdapter<Input, Output>>

Protected requestInterceptors

requestInterceptors: Array<RequestInterceptor<Input>>

Protected requestMappers

requestMappers: Array<RequestMapper<Input, Output>>

Protected responseInterceptors

responseInterceptors: Array<ResponseInterceptor<Input, Output>>

Methods

dispatch

  • dispatch(input: Input): Promise<Output>

Protected dispatchError

  • dispatchError(input: Input, error: Error): Promise<Output>

Protected dispatchRequest

  • dispatchRequest(input: Input): Promise<Output>