Class RouterExecutionContext
Properties
Private guardsContextCreator
Private handlerMetadataStorage
Private interceptorsConsumer
Private interceptorsContextCreator
Private pipesContextCreator
Private responseController
Methods
create
- create(instance: Controller, callback: function, methodName: string, module: string, requestMethod: RequestMethod, contextId?: ContextId, inquirerId?: string): (Anonymous function)
-
Parameters
-
-
callback: function
-
methodName: string
-
module: string
-
-
Default value contextId: ContextId = STATIC_CONTEXT
-
Optional inquirerId: string
Returns (Anonymous function)
createGuardsFn
- createGuardsFn(guards: any[], instance: Controller, callback: function): Function | null
-
Parameters
-
guards: any[]
-
-
callback: function
Returns Function
|
null
createHandleResponseFn
- createHandleResponseFn(callback: function, isResponseHandled: boolean, httpStatusCode?: number): (Anonymous function)
-
Parameters
-
callback: function
-
isResponseHandled: boolean
-
Optional httpStatusCode: number
Returns (Anonymous function)
createPipesFn
- createPipesFn(pipes: any[], paramsOptions: (ParamProperties & object)[]): pipesFn
-
Parameters
-
pipes: any[]
-
paramsOptions: (ParamProperties & object)[]
Returns pipesFn
exchangeKeysForValues
- exchangeKeysForValues(keys: string[], metadata: RouteParamsMetadata, moduleContext: string, contextId?: ContextId, inquirerId?: string): ParamProperties[]
-
Parameters
-
keys: string[]
-
-
moduleContext: string
-
Default value contextId: ContextId = STATIC_CONTEXT
-
Optional inquirerId: string
Returns ParamProperties[]
getCustomFactory
- getCustomFactory(factory: function, data: any): function
-
Parameters
-
factory: function
-
data: any
Returns function
getMetadata
-
Parameters
-
-
callback: function
-
methodName: string
-
module: string
-
getParamValue
- getParamValue<T>(value: T, __namedParameters: object, transforms: Transform<any>[]): Promise<any>
-
Type parameters
Parameters
-
value: T
-
__namedParameters: object
-
data: any
-
metatype: any
-
type: any
-
transforms: Transform<any>[]
Returns Promise<any>
reflectHttpStatusCode
- reflectHttpStatusCode(callback: function): number
-
Parameters
Returns number
reflectRenderTemplate
- reflectRenderTemplate(callback: function): string
-
Parameters
Returns string