Search
Preparing search index...
The search index is not available
@nestjs/core
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
RouterExplorer
Class RouterExplorer
Hierarchy
RouterExplorer
Index
Constructors
constructor
Properties
container
exception
Filters
Cache
exceptions
Filter
execution
Context
Creator
injector
logger
metadata
Scanner
router
Method
Factory
router
Proxy
Methods
apply
Callback
ToRouter
apply
Host
Filter
apply
Paths
ToRouter
Proxy
create
Callback
Proxy
create
Request
Scoped
Handler
explore
explore
Method
Metadata
extract
Router
Path
get
Context
Id
scan
For
Paths
strip
End
Slash
validate
Route
Path
Constructors
constructor
new
Router
Explorer
(
metadataScanner
:
MetadataScanner
, container
:
NestContainer
, injector
?:
Injector
, routerProxy
?:
RouterProxy
, exceptionsFilter
?:
ExceptionsFilter
, config
?:
ApplicationConfig
)
:
RouterExplorer
Parameters
metadataScanner:
MetadataScanner
container:
NestContainer
Optional
injector:
Injector
Optional
routerProxy:
RouterProxy
Optional
exceptionsFilter:
ExceptionsFilter
Optional
config:
ApplicationConfig
Returns
RouterExplorer
Properties
Private
Readonly
container
container
:
NestContainer
Private
Readonly
exception
Filters
Cache
exception
Filters
Cache
:
WeakMap
<
object
,
any
>
= new WeakMap()
Private
Optional
Readonly
exceptions
Filter
exceptions
Filter
:
ExceptionsFilter
Private
Readonly
execution
Context
Creator
execution
Context
Creator
:
RouterExecutionContext
Private
Optional
Readonly
injector
injector
:
Injector
Private
Readonly
logger
logger
:
Logger
= new Logger(RouterExplorer.name, true)
Private
Readonly
metadata
Scanner
metadata
Scanner
:
MetadataScanner
Private
Readonly
router
Method
Factory
router
Method
Factory
:
RouterMethodFactory
= new RouterMethodFactory()
Private
Optional
Readonly
router
Proxy
router
Proxy
:
RouterProxy
Methods
Private
apply
Callback
ToRouter
apply
Callback
ToRouter<T>
(
router
:
T
, pathProperties
:
RoutePathProperties
, instanceWrapper
:
InstanceWrapper
, moduleKey
:
string
, basePath
:
string
, host
:
string
)
:
void
Type parameters
T
:
HttpServer
Parameters
router:
T
pathProperties:
RoutePathProperties
instanceWrapper:
InstanceWrapper
moduleKey:
string
basePath:
string
host:
string
Returns
void
Private
apply
Host
Filter
apply
Host
Filter
(
host
:
string
, handler
:
Function
)
:
Function
Parameters
host:
string
handler:
Function
Returns
Function
apply
Paths
ToRouter
Proxy
apply
Paths
ToRouter
Proxy<T>
(
router
:
T
, routePaths
:
RoutePathProperties
[]
, instanceWrapper
:
InstanceWrapper
, moduleKey
:
string
, basePath
:
string
, host
:
string
)
:
void
Type parameters
T
:
HttpServer
Parameters
router:
T
routePaths:
RoutePathProperties
[]
instanceWrapper:
InstanceWrapper
moduleKey:
string
basePath:
string
host:
string
Returns
void
Private
create
Callback
Proxy
create
Callback
Proxy
(
instance
:
Controller
, callback
:
RouterProxyCallback
, methodName
:
string
, moduleRef
:
string
, requestMethod
:
RequestMethod
, contextId
?:
ContextId
, inquirerId
?:
string
)
:
(Anonymous function)
Parameters
instance:
Controller
callback:
RouterProxyCallback
methodName:
string
moduleRef:
string
requestMethod:
RequestMethod
Default value
contextId:
ContextId
= STATIC_CONTEXT
Optional
inquirerId:
string
Returns
(Anonymous function)
create
Request
Scoped
Handler
create
Request
Scoped
Handler
(
instanceWrapper
:
InstanceWrapper
, requestMethod
:
RequestMethod
, moduleRef
:
Module
, moduleKey
:
string
, methodName
:
string
)
:
(Anonymous function)
Parameters
instanceWrapper:
InstanceWrapper
requestMethod:
RequestMethod
moduleRef:
Module
moduleKey:
string
methodName:
string
Returns
(Anonymous function)
explore
explore<T>
(
instanceWrapper
:
InstanceWrapper
, module
:
string
, applicationRef
:
T
, basePath
:
string
, host
:
string
)
:
void
Type parameters
T
:
HttpServer
=
any
Parameters
instanceWrapper:
InstanceWrapper
module:
string
applicationRef:
T
basePath:
string
host:
string
Returns
void
explore
Method
Metadata
explore
Method
Metadata
(
instance
:
Controller
, prototype
:
object
, methodName
:
string
)
:
RoutePathProperties
Parameters
instance:
Controller
prototype:
object
methodName:
string
Returns
RoutePathProperties
extract
Router
Path
extract
Router
Path
(
metatype
:
Type
<
Controller
>
, prefix
?:
string
)
:
string
Parameters
metatype:
Type
<
Controller
>
Optional
prefix:
string
Returns
string
Private
get
Context
Id
get
Context
Id<T>
(
request
:
T
)
:
ContextId
Type parameters
T
:
Record
<
any
,
unknown
>
=
any
Parameters
request:
T
Returns
ContextId
scan
For
Paths
scan
For
Paths
(
instance
:
Controller
, prototype
?:
object
)
:
RoutePathProperties
[]
Parameters
instance:
Controller
Optional
prototype:
object
Returns
RoutePathProperties
[]
strip
End
Slash
strip
End
Slash
(
str
:
string
)
:
string
Parameters
str:
string
Returns
string
validate
Route
Path
validate
Route
Path
(
path
:
string
)
:
string
Parameters
path:
string
Returns
string
Globals
Router
Explorer
constructor
container
exception
Filters
Cache
exceptions
Filter
execution
Context
Creator
injector
logger
metadata
Scanner
router
Method
Factory
router
Proxy
apply
Callback
ToRouter
apply
Host
Filter
apply
Paths
ToRouter
Proxy
create
Callback
Proxy
create
Request
Scoped
Handler
explore
explore
Method
Metadata
extract
Router
Path
get
Context
Id
scan
For
Paths
strip
End
Slash
validate
Route
Path
Generated using
TypeDoc