Class: ServerRouter

ServerRouter

The server-side implementation of the Router interface.


new ServerRouter(pageManager, factory, dispatcher, request, response)

Initializes the router.

Parameters:
Name Type Description
pageManager PageManager

The current page manager.

factory RouteFactory

The router factory used to create routes.

dispatcher Dispatcher

Dispatcher fires events to app.

request Request

The current HTTP request.

response Response

The current HTTP response.

Members


_request :Request

The current HTTP request.

Type:

_response :Response

The current HTTP response.

Type:

Methods


getPath()


listen()


redirect()