Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • InternalServer

Index

Constructors

constructor

Properties

router

router: express.Router

upload

upload: Instance

Static cookiesDecoder

cookiesDecoder: function

Type declaration

    • (val: string): string
    • Parameters

      • val: string

      Returns string

Static cookiesSecret

cookiesSecret: string

Static fileDest

fileDest: string

Static fileFilter

fileFilter: function

Type declaration

    • (req: Request, file: File, callback: function): void
    • Parameters

      • req: Request
      • file: File
      • callback: function
          • (error: Error, acceptFile: boolean): void
          • Parameters

            • error: Error
            • acceptFile: boolean

            Returns void

      Returns void

Static fileLimits

fileLimits: number

Static paths

paths: Map<string, Set<HttpMethod>> = new Map<string,Set<HttpMethod>>()

Static pathsResolved

pathsResolved: boolean = false

Static serverClasses

serverClasses: Map<string, ServiceClass> = new Map<string,metadata.ServiceClass>()

Methods

Private buildArgumentsList

buildService

Private buildServiceMiddleware

  • buildServiceMiddleware(serviceMethod: ServiceMethod): Array<express.RequestHandler>

buildServices

  • buildServices(types?: Array<Function>): void

Private callTargetEndPoint

  • callTargetEndPoint(serviceClass: ServiceClass, serviceMethod: ServiceMethod, req: express.Request, res: express.Response, next: express.NextFunction): void

Private checkAcceptance

Private convertType

  • convertType(paramValue: string, paramType: Function): any

Private createService

Private getUploader

  • getUploader(): Instance

Private handleNotAllowedMethods

  • handleNotAllowedMethods(): void

Private processParameter

Private processResponseHeaders

Private sendValue

  • sendValue(value: any, res: express.Response, next: express.NextFunction): void
  • Parameters

    • value: any
    • res: express.Response
    • next: express.NextFunction

    Returns void

Private validateTargetType

  • validateTargetType(targetClass: Function, types: Array<Function>): boolean

Static getHttpMethods

Static getPaths

  • getPaths(): Set<string>

Static registerServiceClass

Static registerServiceMethod

  • registerServiceMethod(target: Function, methodName: string): ServiceMethod

Static Private resolveAccepts

Static resolveAllPaths

  • resolveAllPaths(): void

Static Private resolveLanguages

Static Private resolvePath

Static Private resolveProperties

Object literals

Static serviceFactory

serviceFactory: object

create

  • create(serviceClass: Function): any

getTargetClass

  • getTargetClass(serviceClass: Function): FunctionConstructor

Generated using TypeDoc