1 |
|
2 | import * as e from 'express';
|
3 | import { OptionsV2 as xml2jsOptionsV2 } from 'xml2js';
|
4 | import BaseApp, { Plugin, PluginContext } from '../app/BaseApp';
|
5 | export declare class RouteRegisterUtil {
|
6 | private routesToRegister;
|
7 | private express;
|
8 | doRegister(): void;
|
9 | }
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 |
|
18 |
|
19 | export declare const clientErrorMiddleware: (err: any, req: any, res: any, next: any) => any;
|
20 | export declare const errorMiddleware: (err: any, req: any, res: any, next: any) => any;
|
21 | export interface WebPluginOptions {
|
22 | staticRoots?: string[];
|
23 | xmlBodyParserOptions?: xml2jsOptionsV2;
|
24 | }
|
25 | export default class WebPlugin implements Plugin {
|
26 | private options;
|
27 | static CONTEXT_APP_KEY: string;
|
28 | static CONTEXT_SERVER_KEY: string;
|
29 | name: string;
|
30 | constructor(options?: WebPluginOptions);
|
31 | willStart(app: BaseApp, pluginContext: PluginContext): void;
|
32 | didStart(app: any, pluginContext: any): void;
|
33 | didStop(app: any, pluginContext: any): void;
|
34 | protected registerXmlBodyParser(express: e.Express): void;
|
35 | protected registerXmlContentNegotiationMiddleware(express: e.Express, xmlRoot: string): void;
|
36 | }
|