UNPKG

node-web-mvc

Version:
16 lines (15 loc) 680 B
import ServletContext from '../http/ServletContext'; import ModelAndViewContainer from '../models/ModelAndViewContainer'; import HandlerMethod from './HandlerMethod'; import HandlerMethodReturnValueHandler from './return/HandlerMethodReturnValueHandler'; export default class ServletInvocableHandlerMethod { private returnvalueHandlers; private readonly handlerMethod; constructor(handlerMethod: HandlerMethod); setReturnValueHandlers(handlers: HandlerMethodReturnValueHandler[]): void; /** * 执行方法 */ invoke(servletContext: ServletContext, mavContainer: ModelAndViewContainer, args: any[]): Promise<any>; private setResponseStatus; }