Options
All
  • Public
  • Public/Protected
  • All
Menu

Class RouterExecutionContext

Hierarchy

  • RouterExecutionContext

Index

Constructors

constructor

Properties

applicationRef

applicationRef: HttpServer

Private contextUtils

contextUtils: ContextUtils = new ContextUtils()

Private guardsConsumer

guardsConsumer: GuardsConsumer

Private guardsContextCreator

guardsContextCreator: GuardsContextCreator

Private handlerMetadataStorage

handlerMetadataStorage: HandlerMetadataStorage<HandlerMetadata, any> = new HandlerMetadataStorage()

Private interceptorsConsumer

interceptorsConsumer: InterceptorsConsumer

Private interceptorsContextCreator

interceptorsContextCreator: InterceptorsContextCreator

Private paramsFactory

paramsFactory: IRouteParamsFactory

Private pipesConsumer

pipesConsumer: PipesConsumer

Private pipesContextCreator

pipesContextCreator: PipesContextCreator

Private responseController

responseController: RouterResponseController

Methods

create

  • create(instance: Controller, callback: function, methodName: string, module: string, requestMethod: RequestMethod, contextId?: ContextId, inquirerId?: string): (Anonymous function)

createGuardsFn

  • createGuardsFn(guards: any[], instance: Controller, callback: function): Function | null

createHandleResponseFn

  • createHandleResponseFn(callback: function, isResponseHandled: boolean, httpStatusCode?: number): (Anonymous function)
  • Parameters

    • callback: function
        • (...args: any[]): any
        • Parameters

          • Rest ...args: any[]

          Returns any

    • isResponseHandled: boolean
    • Optional httpStatusCode: number

    Returns (Anonymous function)

createPipesFn

  • createPipesFn(pipes: any[], paramsOptions: (ParamProperties & object)[]): pipesFn

exchangeKeysForValues

  • exchangeKeysForValues(keys: string[], metadata: RouteParamsMetadata, moduleContext: string, contextId?: ContextId, inquirerId?: string): ParamProperties[]

getCustomFactory

  • getCustomFactory(factory: function, data: any): function
  • Parameters

    • factory: function
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    • data: any

    Returns function

      • (...args: any[]): any
      • Parameters

        • Rest ...args: any[]

        Returns any

getMetadata

getParamValue

  • getParamValue<T>(value: T, __namedParameters: object, transforms: Transform<any>[]): Promise<any>

reflectHttpStatusCode

  • reflectHttpStatusCode(callback: function): number

reflectRenderTemplate

  • reflectRenderTemplate(callback: function): string

reflectResponseHeaders

  • reflectResponseHeaders(callback: function): CustomHeader[]

Generated using TypeDoc