Reference Source
public class | source

Server

Extends:

devapt-core-common/dist/js/base/distributed_instance~DistributedInstance → Server

Indirect Subclass:

ExpressServer, RestifyServer

Constructor Summary

Public Constructor
public

constructor(arg_name: string, arg_class: string, arg_settings: object, arg_log_context: string): nothing

Create a server instance.

Member Summary

Public Members
public
public
public
public

server: *

public
public
public
public
public
public
public
public

Method Summary

Public Methods
public

build_server(): nothing

Build private server instance.

public

disable(): nothing

Disable server (stop it).

public

enable(): nothing

Enable server (start it).

public

get_security_settings(): Immutable.Map

Get security settings from server or runtime.

public

Get security settings object into the server.

public

get_topology_info(arg_deep: boolean, arg_visited: object): object

Get topology item informations.

public

load(): nothing

Load server settings.

public

use_service_on_loading(arg_application: Application, arg_service: Service, arg_app_svc_cfg: object): nothing

Add a service to use before or after security check.

Public Constructors

public constructor(arg_name: string, arg_class: string, arg_settings: object, arg_log_context: string): nothing source

Create a server instance.

Params:

NameTypeAttributeDescription
arg_name string

server name.

arg_class string

server class name.

arg_settings object

plugin settings map.

arg_log_context string

trace context string.

Return:

nothing

Public Members

public authentication: * source

public is_build: boolean source

public is_server: boolean source

public server: * source

public server_host: * source

public server_http: * source

public server_port: * source

public server_protocole: * source

public server_type: * source

public serverio: * source

public services_with_security: *[] source

public services_without_security: *[] source

Public Methods

public build_server(): nothing source

Build private server instance.

Return:

nothing

public disable(): nothing source

Disable server (stop it).

Return:

nothing

public enable(): nothing source

Enable server (start it).

Return:

nothing

public get_security_settings(): Immutable.Map source

Get security settings from server or runtime.

Return:

Immutable.Map

security settings.

public get_server_security_settings(): object source

Get security settings object into the server.

Return:

object

security settings.

public get_topology_info(arg_deep: boolean, arg_visited: object): object source

Get topology item informations.

Params:

NameTypeAttributeDescription
arg_deep boolean

get deep sub items information on true (default:false).

arg_visited object

visited items plain object map.

Return:

object

topology informations (plain object).

public load(): nothing source

Load server settings.

Return:

nothing

public use_service_on_loading(arg_application: Application, arg_service: Service, arg_app_svc_cfg: object): nothing source

Add a service to use before or after security check.

Params:

NameTypeAttributeDescription
arg_application Application
arg_service Service
arg_app_svc_cfg object

(default:{})

Return:

nothing