Options
All
  • Public
  • Public/Protected
  • All
Menu

Class WebdaConfiguration

Hierarchy

Constructors

Properties

_ajv: any

JSON Schema validator instance

_ajvSchemas: any

JSON Schema registry

_configFile: string
_currentExecutor: any

Current executor

_init: Promise<void>

Init promise to ensure, webda is initiated Used for init() method

_initPromise: Promise<void>
_initTime: number
_initiated: boolean
_requestFilters: RequestFilter<Context>[]

CORS Filter registry

Added via [[Webda.registerRequestFilter]] See [[CorsFilter]]

application: Application
devMode: boolean
failedServices: object

Type declaration

  • [key: string]: any
router: Router
serverStatus: ServerStatus = ServerStatus.Stopped
staticIndex: string
webdaApplication: Application
defaultMaxListeners: number

Methods

  • _getSetters(obj: any): any[]
  • addListener(event: string | symbol, listener: function): this
  • addRoute(url: string, info: RouteInfo): void
  • autoConnectServices(): void
  • checkRequest(ctx: Context): Promise<boolean>
  • emit(event: string | symbol, ...args: any[]): boolean
  • emitSync(event: any, ...data: any[]): Promise<any[]>
  • eventNames(): Array<string | symbol>
  • exportOpenAPI(skipHidden?: boolean): Document
  • flush(ctx: any): void
  • flushHeaders(ctx: any): void
  • getAppPath(subpath?: string): string
  • getApplication(): Application
  • getConfiguration(): Configuration
  • getDeployers(): object
  • getGlobalParams(): any
  • getLocales(): string[]
  • getLogger(clazz: string | Service): Logger
  • getMaxListeners(): number
  • getModel(name: any): any
  • getModels(): object
  • getModules(): CachedModule
  • getRouter(): Router
  • getSalt(): string
  • getSecret(): string
  • This should return a "turning" secret with cache and a service to modify it every x mins WARNING The security is lower without this "turning" secret, you can still set the global.secret parameter

    Dont rely on this method, it will probably disapear to avoid secret leak

    deprecated

    Returns string

    Current secret

  • getService<T>(name?: string): T
  • getServiceParams(service: string): any
  • getServices(): object
  • getServicesImplementations(type?: any): object
  • getStores(): object
  • getVersion(): string
  • getWebdaApplication(): Application
  • getWorkerOutput(): WorkerOutput
  • handleRequest(req: any, res: any, next: any): Promise<any>
  • handleStaticIndexRequest(req: any, res: any, next: any): void
  • init(): Promise<void>
  • initBeanRoutes(serviceBean: Service): void
  • initStatics(): void
  • isDebug(): boolean
  • jsonFilter(key: string, value: any): any
  • listenerCount(type: string | symbol): number
  • listeners(event: string | symbol): Function[]
  • logRequest(...args: any[]): void
  • newContext<T>(httpContext: HttpContext, stream?: any, noInit?: boolean): Promise<T>
  • off(event: string | symbol, listener: function): this
  • on(event: string | symbol, listener: function): this
  • once(event: string | symbol, listener: function): this
  • output(...args: any[]): void
  • parameter(name: string): any
  • prependListener(event: string | symbol, listener: function): this
  • prependOnceListener(event: string | symbol, listener: function): this
  • rawListeners(event: string | symbol): Function[]
  • registerModel(name: string, clazz: any): void
  • registerRequestFilter(filter: RequestFilter<Context>): void
  • reinit(updates: any): Promise<void>
  • reinitResolvedRoutes(): void
  • removeAllListeners(event?: string | symbol): this
  • removeListener(event: string | symbol, listener: function): this
  • removeRoute(url: string): void
  • sandbox(executor: any, code: any): any
  • serve(): Promise<void>
  • serveIndex(express: any, app: any): void
  • serveStaticWebsite(express: any, app: any): void
  • setDevMode(devMode: boolean): void
  • setMaxListeners(n: number): this
  • stop(): Promise<void>
  • toPublicJSON(object: any): string
  • updateContextWithRoute(ctx: Context): boolean
  • validate(object: any, schema: any): any
  • validationLastErrors(): any
  • waitForStatus(status: Stopped | Started, timeout?: number): Promise<void>
  • listenerCount(emitter: EventEmitter, event: string | symbol): number

Generated using TypeDoc