Router

Server.Modules. Router

# new Router(coreObj) → {Server.Modules.Router}

This is the Router Module of the Blackrock Application Server. It is responsible for accepting incoming requests from any of the interfaces and then routing these requests on to the relevant app + controller. It then routes the response back from the controller to the originating interface.

Parameters:
Name Type Description
coreObj Server.Modules.Core

The Core Module Singleton

Author:
  • Darren Smith
License:
  • Licensed under the LGPL license.
Returns:

module - The Router Module Singleton

Type
Server.Modules.Router
Example
Tbc...

Extends

Classes

router

Methods

# (static) count() → {number}

Tbc...

Returns:

Number of Active Routers

Type
number
Example
Tbc...

# (static) get() → {string|Server.Modules.Router.router}

Tbc...

Returns:
Example
Tbc...

# (static) list() → {array}

Tbc...

Returns:

Array of Routers

Type
array
Example
Tbc...

# (static) new(name) → {Server.Modules.Router.router}

Tbc...

Parameters:
Name Type Description
name string

Router Name

Returns:

router - Router

Type
Server.Modules.Router.router
Example
Tbc...