Options
All
  • Public
  • Public/Protected
  • All
Menu

Class RouterExplorer

Hierarchy

  • RouterExplorer

Index

Constructors

constructor

  • new RouterExplorer(metadataScanner: any, container: any, injector: any, routerProxy: any, exceptionsFilter: any, config: any): RouterExplorer
  • Parameters

    • metadataScanner: any
    • container: any
    • injector: any
    • routerProxy: any
    • exceptionsFilter: any
    • config: any

    Returns RouterExplorer

Methods

applyCallbackToRouter

  • applyCallbackToRouter(router: any, pathProperties: any, instanceWrapper: any, moduleKey: any, basePath: any, host: any): void
  • Parameters

    • router: any
    • pathProperties: any
    • instanceWrapper: any
    • moduleKey: any
    • basePath: any
    • host: any

    Returns void

applyHostFilter

  • applyHostFilter(host: any, handler: any): any
  • Parameters

    • host: any
    • handler: any

    Returns any

applyPathsToRouterProxy

  • applyPathsToRouterProxy(router: any, routePaths: any, instanceWrapper: any, moduleKey: any, basePath: any, host: any): void
  • Parameters

    • router: any
    • routePaths: any
    • instanceWrapper: any
    • moduleKey: any
    • basePath: any
    • host: any

    Returns void

createCallbackProxy

  • createCallbackProxy(instance: any, callback: any, methodName: any, moduleRef: any, requestMethod: any, contextId?: ContextId, inquirerId: any): any
  • Parameters

    • instance: any
    • callback: any
    • methodName: any
    • moduleRef: any
    • requestMethod: any
    • Default value contextId: ContextId = constants_2.STATIC_CONTEXT
    • inquirerId: any

    Returns any

createRequestScopedHandler

  • createRequestScopedHandler(instanceWrapper: any, requestMethod: any, moduleRef: any, moduleKey: any, methodName: any): (Anonymous function)
  • Parameters

    • instanceWrapper: any
    • requestMethod: any
    • moduleRef: any
    • moduleKey: any
    • methodName: any

    Returns (Anonymous function)

explore

  • explore(instanceWrapper: any, module: any, applicationRef: any, basePath: any, host: any): void
  • Parameters

    • instanceWrapper: any
    • module: any
    • applicationRef: any
    • basePath: any
    • host: any

    Returns void

exploreMethodMetadata

  • exploreMethodMetadata(instance: any, prototype: any, methodName: any): { methodName: any; path: any; requestMethod: any; targetCallback: any }
  • Parameters

    • instance: any
    • prototype: any
    • methodName: any

    Returns { methodName: any; path: any; requestMethod: any; targetCallback: any }

    • methodName: any
    • path: any
    • requestMethod: any
    • targetCallback: any

extractRouterPath

  • extractRouterPath(metatype: any, prefix: any): string
  • Parameters

    • metatype: any
    • prefix: any

    Returns string

getContextId

  • getContextId(request: any): ContextId
  • Parameters

    • request: any

    Returns ContextId

scanForPaths

  • scanForPaths(instance: any, prototype: any): any
  • Parameters

    • instance: any
    • prototype: any

    Returns any

stripEndSlash

  • stripEndSlash(str: any): any
  • Parameters

    • str: any

    Returns any

validateRoutePath

  • validateRoutePath(path: any): string
  • Parameters

    • path: any

    Returns string

Generated using TypeDoc