Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MainFacadeService

Hierarchy

Implements

Index

Constructors

constructor

Properties

Private _connectionResolver

_connectionResolver: ConnectionResolver = new ConnectionResolver()

Private _credentialResolver

_credentialResolver: CredentialResolver = new CredentialResolver()

Private _debug

_debug: boolean = true

Protected _dependencyResolver

_dependencyResolver: DependencyResolver = new DependencyResolver()

Private _http

_http: any

Protected _logger

_logger: CompositeLogger = new CompositeLogger()

Private _maintenance_enabled

_maintenance_enabled: boolean = false

Private _maxReqSize

_maxReqSize: string = "1mb"

Private _maxSockets

_maxSockets: number = 50

Protected _partition

_partition: any = express()

Protected _rootPath

_rootPath: string = ""

Private _server

_server: any

Static Private _defaultConfig

_defaultConfig: ConfigParams = ConfigParams.fromTuples('root_path', '','connection.protocol', 'http','connection.hostname', '0.0.0.0','connection.port', 8080,'credential.ssl_key_file', null,'credential.ssl_crt_file', null,'credential.ssl_ca_file', null,'options.debug', true,'options.maintenance_enabled', false,'options.max_sockets', 50,'options.max_req_size', '1mb')

Methods

close

  • close(correlationId: string, callback?: function): void
  • Parameters

    • correlationId: string
    • Optional callback: function
        • (err: any): void
        • Parameters

          • err: any

          Returns void

    Returns void

configure

  • configure(config: ConfigParams): void

Private createHttp

  • createHttp(server: any, connection: ConnectionParams, credential: CredentialParams): any

Private createServer

  • createServer(): any

Private doMaintenance

  • doMaintenance(req: any, res: any, next: function): void

Protected getConnection

  • getConnection(correlationId: string, callback: function): void
  • Parameters

    • correlationId: string
    • callback: function
        • (err: any, result: ConnectionParams): void
        • Parameters

          • err: any
          • result: ConnectionParams

          Returns void

    Returns void

Protected getCredential

  • getCredential(correlationId: string, connection: ConnectionParams, callback: function): void
  • Parameters

    • correlationId: string
    • connection: ConnectionParams
    • callback: function
        • (err: any, result: CredentialParams): void
        • Parameters

          • err: any
          • result: CredentialParams

          Returns void

    Returns void

getRootPath

  • getRootPath(): string

isMaintenanceEnabled

  • isMaintenanceEnabled(): boolean

isOpened

  • isOpened(): boolean

Private noCache

  • noCache(req: any, res: any, next: function): void

open

  • open(correlationId: string, callback?: function): void
  • Parameters

    • correlationId: string
    • Optional callback: function
        • (err: any): void
        • Parameters

          • err: any

          Returns void

    Returns void

registerMiddleware

  • registerMiddleware(action: function): void

registerMiddlewareForPath

  • registerMiddlewareForPath(path: string, action: function): void

registerRoute

  • registerRoute(method: string, route: string, action: function): void

registerRouteWithAuth

  • registerRouteWithAuth(method: string, route: string, authorize: function, action: function): void
  • Parameters

    • method: string
    • route: string
    • authorize: function
        • (req: any, res: any, next: function): void
        • Parameters

          • req: any
          • res: any
          • next: function
              • (): void
              • Returns void

          Returns void

    • action: function
        • (req: any, res: any): void
        • Parameters

          • req: any
          • res: any

          Returns void

    Returns void

setMaintenanceEnabed

  • setMaintenanceEnabed(value: boolean): void

setReferences

  • setReferences(references: IReferences): void

Generated using TypeDoc