Reference Source
public class | source

ExecutableRouteGetResources

Extends:

devapt-core-common/dist/js/base/executable~ExecutableExecutableRoute → ExecutableRouteGetResources

TODO:

  • check resources accesses

Constructor Summary

Public Constructor
public

constructor(arg_provider: ServiceProvider): nothing

Create a ExecutableRouteGetResources instance.

Method Summary

Public Methods
public

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

Callback for route handling.

public

include_file(self: object, arg_resource_name: string, arg_file_path_name: string): string

Load an asset file for a resource

public

send_resources_list(res: object, arg_application: object, arg_cfg_route: object): nothing

Get a collection resources list.

Inherited Summary

From class ExecutableRoute
protected

Executable server.

protected

Executable settings.

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 constructor(arg_provider: ServiceProvider): nothing source

Create a ExecutableRouteGetResources instance.

Override:

ExecutableRoute#constructor

Params:

NameTypeAttributeDescription
arg_provider ServiceProvider

service provider.

Return:

nothing

Public Methods

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

Callback for route handling.

Override:

ExecutableRoute#get_route_cb

Params:

NameTypeAttributeDescription
arg_application object

Application instance.

arg_cfg_route object

plain object route configuration.

arg_data object

plain object contextual datas.

route function

handler.

Return:

*

public include_file(self: object, arg_resource_name: string, arg_file_path_name: string): string source

Load an asset file for a resource

Params:

NameTypeAttributeDescription
self object

this class instance

arg_resource_name string

resource name

arg_file_path_name string

file path name

Return:

string

file content

public send_resources_list(res: object, arg_application: object, arg_cfg_route: object): nothing source

Get a collection resources list.

Params:

NameTypeAttributeDescription
res object

response instance

arg_application object

Application instance.

arg_cfg_route object

plain object route configuration.

Return:

nothing