Reference Source
public class | source

ExecutableRoute

Extends:

devapt-core-common/dist/js/base/executable~Executable → ExecutableRoute

Constructor Summary

Public Constructor
public abstract

Create a ExecutableRoute instance.

Member Summary

Protected Members
protected

Executable server.

protected

Executable settings.

Method Summary

Public Methods
public

execute(arg_data: object): object

Execution with contextual informations.

public abstract

get_route_cb(arg_application: TopologyDefineApplication, arg_cfg_route: object, arg_data: object, route: function)

Callback for route handling.

public

get_route_redirect_cb(arg_application: TopologyDefineApplication, arg_cfg_route: object, arg_data: object, route: function): *

Callback for redirect route handling.

public

prepare(arg_settings: object): nothing

Prepare an execution with contextual informations.

public

process_route(arg_server: Server, arg_application: TopologyDefineApplication, arg_cfg_route: object, arg_data: object): Promise

Process a route registering.

Public Constructors

public abstract constructor() source

Create a ExecutableRoute instance.

Protected Members

protected server: object source

Executable server.

protected store_config: object source

Executable settings.

Public Methods

public execute(arg_data: object): object source

Execution with contextual informations.

Params:

NameTypeAttributeDescription
arg_data object

Application instance.

Return:

object

promise.

public abstract get_route_cb(arg_application: TopologyDefineApplication, arg_cfg_route: object, arg_data: object, route: function) source

Callback for route handling.

Params:

NameTypeAttributeDescription
arg_application TopologyDefineApplication

Application instance.

arg_cfg_route object

plain object route configuration.

arg_data object

plain object contextual datas.

route function

handler.

public get_route_redirect_cb(arg_application: TopologyDefineApplication, arg_cfg_route: object, arg_data: object, route: function): * source

Callback for redirect route handling.

Params:

NameTypeAttributeDescription
arg_application TopologyDefineApplication

Application instance.

arg_cfg_route object

plain object route configuration.

arg_data object

plain object contextual datas.

route function

handler.

Return:

*

public prepare(arg_settings: object): nothing source

Prepare an execution with contextual informations.

Params:

NameTypeAttributeDescription
arg_settings object

execution settings.

Return:

nothing

public process_route(arg_server: Server, arg_application: TopologyDefineApplication, arg_cfg_route: object, arg_data: object): Promise source

Process a route registering.

Params:

NameTypeAttributeDescription
arg_server Server

Server instance.

arg_application TopologyDefineApplication

Application instance.

arg_cfg_route object

plain object route configuration.

arg_data object

plain object contextual datas.

Return:

Promise

Promise(boolean) with (true:success, false: failure).