UNPKG

@xmobitea/gn-server

Version:
19 lines (18 loc) 997 B
import { OperationResponse } from "./../../../GN-common/entity/operationResponse/OperationResponse"; import { Request } from "./../../../GN-common/entity/operationRequest/base/Request"; import { IRequestHandler } from "./handler/base/IRequestHandler"; import { IRequestConverterService } from "./../../service/IRequestConverterService"; export declare class RequestController { private handlers; private requestUnAuthenticatedCodes; private requestConverterService; setRequestConverterService(requestConverterService: IRequestConverterService): void; getRequestUnAuthenticatedCodes(): number[]; addHandler(type: number, requestHandler: IRequestHandler, onlyAuthenticated?: boolean): void; removeHandler(type: number, code: number): void; removeAllHandlers(): void; getHandler(type: number, code: number): IRequestHandler; getAllHandlers(type: number): IRequestHandler[]; handleRequest(request: Request): Promise<OperationResponse>; constructor(); }