Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MiddlewareModule

Hierarchy

  • MiddlewareModule

Index

Constructors

constructor

  • Returns MiddlewareModule

Methods

bindHandler

  • bindHandler(wrapper: any, applicationRef: any, method: any, path: any, moduleRef: any, collection: any): Promise<void>
  • Parameters

    • wrapper: any
    • applicationRef: any
    • method: any
    • path: any
    • moduleRef: any
    • collection: any

    Returns Promise<void>

createProxy

  • createProxy(instance: any, contextId?: ContextId): Promise<<TRequest, TResponse>(req: TRequest, res: TResponse, next: () => void) => Promise<void>>
  • Parameters

    • instance: any
    • Default value contextId: ContextId = constants_1.STATIC_CONTEXT

    Returns Promise<<TRequest, TResponse>(req: TRequest, res: TResponse, next: () => void) => Promise<void>>

loadConfiguration

  • loadConfiguration(middlewareContainer: any, instance: any, moduleKey: any): Promise<void>
  • Parameters

    • middlewareContainer: any
    • instance: any
    • moduleKey: any

    Returns Promise<void>

register

  • register(middlewareContainer: any, container: any, config: any, injector: any, httpAdapter: any): Promise<void>
  • Parameters

    • middlewareContainer: any
    • container: any
    • config: any
    • injector: any
    • httpAdapter: any

    Returns Promise<void>

registerHandler

  • registerHandler(router: any, path: any, proxy: any): void
  • Parameters

    • router: any
    • path: any
    • proxy: any

    Returns void

registerMiddleware

  • registerMiddleware(middlewareContainer: any, applicationRef: any): Promise<void>
  • Parameters

    • middlewareContainer: any
    • applicationRef: any

    Returns Promise<void>

registerMiddlewareConfig

  • registerMiddlewareConfig(middlewareContainer: any, config: any, moduleKey: any, applicationRef: any): Promise<void>
  • Parameters

    • middlewareContainer: any
    • config: any
    • moduleKey: any
    • applicationRef: any

    Returns Promise<void>

registerRouteMiddleware

  • registerRouteMiddleware(middlewareContainer: any, routeInfo: any, config: any, moduleKey: any, applicationRef: any): Promise<void>
  • Parameters

    • middlewareContainer: any
    • routeInfo: any
    • config: any
    • moduleKey: any
    • applicationRef: any

    Returns Promise<void>

resolveMiddleware

  • resolveMiddleware(middlewareContainer: any, modules: any): Promise<void>
  • Parameters

    • middlewareContainer: any
    • modules: any

    Returns Promise<void>

Generated using TypeDoc