Modifier and Type | Class and Description |
---|---|
class |
WebMVC
MVC框架管理器
|
Modifier and Type | Method and Description |
---|---|
static IWebMvc |
WebMVC.get() |
Modifier and Type | Method and Description |
---|---|
protected void |
AbstractResponseErrorProcessor.doProcessError(IWebMvc owner,
Throwable unwrapThrow) |
protected void |
AbstractResponseErrorProcessor.doProcessErrorStatusCodeIfNeed(IWebMvc owner) |
String |
AbstractResponseErrorProcessor.getErrorDefaultViewFormat(IWebMvc owner) |
String[] |
ISignatureExtraParamProcessor.getExtraParams(IWebMvc owner,
Map<String,Object> signatureParams)
获取签名所需扩展参数集合
|
Map<String,Object> |
ISignatureParamParser.getParams(IWebMvc owner,
RequestMeta requestMeta)
获取签名所需参数集合
|
boolean |
AbstractResponseErrorProcessor.isAnalysisDisabled(IWebMvc owner) |
boolean |
AbstractResponseErrorProcessor.isErrorWithStatusCode(IWebMvc owner) |
IView |
IWebErrorProcessor.onConvention(IWebMvc owner,
IRequestContext requestContext)
自定义处理URL请求过程
|
void |
IWebErrorProcessor.onError(IWebMvc owner,
Throwable e)
异常时将执行事件回调
|
IView |
IWebErrorProcessor.onValidation(IWebMvc owner,
Map<String,ValidateResult> results)
处理验证结果数据
|
IView |
IResponseBodyProcessor.processBody(IWebMvc owner,
Object result,
boolean contentType,
boolean keepNull,
boolean snakeCase)
处理响应内容
|
IView |
IResponseErrorProcessor.processError(IWebMvc owner,
Throwable e)
处理异常
|
IView |
AbstractResponseErrorProcessor.processError(IWebMvc owner,
Throwable e) |
PairObject<IView,ResponseCache> |
IInterceptorRuleProcessor.processRequest(IWebMvc owner,
IRequestContext requestContext)
处理请求执行拦截规则
|
Map<String,Object> |
IRequestProcessor.processRequestParams(IWebMvc owner,
RequestMeta requestMeta)
分析请求协议内容
|
boolean |
IWebCacheProcessor.processResponseCache(IWebMvc owner,
ResponseCache responseCache,
IView resultView)
对控制器方法返回视图进行缓存处理
|
abstract IView |
AbstractResponseErrorProcessor.showErrorMsg(IWebMvc owner,
String code,
String msg,
Map<String,Object> dataMap) |
IView |
AbstractResponseErrorProcessor.showValidationResults(IWebMvc owner,
Map<String,ValidateResult> results) |
boolean |
ISignatureValidator.validate(IWebMvc owner,
RequestMeta requestMeta,
SignatureValidate signatureValidate)
验证签名
|
Constructor and Description |
---|
InterceptorRuleMeta(IWebMvc owner,
Class<? extends IInterceptorRule> targetClass,
Method targetMethod) |
WebEvent(IWebMvc owner,
WebEvent.EVENT eventName) |
Modifier and Type | Method and Description |
---|---|
IWebMvc |
WebContext.getOwner() |
Modifier and Type | Method and Description |
---|---|
static WebContext |
WebContext.create(IWebMvc webMvc,
IRequestContext requestContext,
ServletContext servletContext,
HttpServletRequest request,
HttpServletResponse response) |
Modifier and Type | Method and Description |
---|---|
void |
CrossDomainSettings.initialize(IWebMvc owner) |
Constructor and Description |
---|
ControllerHandler(IWebMvc owner) |
InterceptorRuleHandler(IWebMvc owner) |
Modifier and Type | Method and Description |
---|---|
IWebMvc |
DefaultWebErrorProcessor.getOwner() |
Modifier and Type | Method and Description |
---|---|
protected Object |
XMLRequestProcessor.doParseRequestParam(IWebMvc owner,
ParameterMeta paramMeta,
String paramName,
String defaultValue,
boolean fullScope) |
protected Object |
DefaultRequestProcessor.doParseRequestParam(IWebMvc owner,
ParameterMeta paramMeta,
String paramName,
String defaultValue,
boolean fullScope) |
protected Object |
JSONRequestProcessor.doParseRequestParam(IWebMvc owner,
ParameterMeta paramMeta,
String paramName,
String defaultValue,
boolean fullScope) |
protected String |
DefaultSignatureValidator.doSignature(IWebMvc owner,
SignatureValidate signatureValidate,
Map<String,Object> signatureParams) |
String |
JSONResponseErrorProcessor.getErrorDefaultViewFormat(IWebMvc owner) |
String |
XMLResponseErrorProcessor.getErrorDefaultViewFormat(IWebMvc owner) |
String |
DefaultResponseErrorProcessor.getErrorDefaultViewFormat(IWebMvc owner) |
Map<String,Object> |
DefaultSignatureParamParser.getParams(IWebMvc owner,
RequestMeta requestMeta) |
void |
DefaultWebMvcConfig.initialize(IWebMvc owner) |
void |
DefaultWebErrorProcessor.initialize(IWebMvc owner) |
void |
DefaultInterceptorRuleProcessor.initialize(IWebMvc owner) |
IView |
DefaultWebErrorProcessor.onConvention(IWebMvc owner,
IRequestContext requestContext) |
void |
DefaultWebErrorProcessor.onError(IWebMvc owner,
Throwable e) |
IView |
DefaultWebErrorProcessor.onValidation(IWebMvc owner,
Map<String,ValidateResult> results) |
IView |
DefaultResponseBodyProcessor.processBody(IWebMvc owner,
Object result,
boolean contentType,
boolean keepNull,
boolean snakeCase) |
PairObject<IView,ResponseCache> |
DefaultInterceptorRuleProcessor.processRequest(IWebMvc owner,
IRequestContext requestContext) |
Map<String,Object> |
DefaultRequestProcessor.processRequestParams(IWebMvc owner,
RequestMeta requestMeta) |
boolean |
DefaultWebCacheProcessor.processResponseCache(IWebMvc owner,
ResponseCache responseCache,
IView resultView) |
IView |
JSONResponseErrorProcessor.showErrorMsg(IWebMvc owner,
String code,
String msg,
Map<String,Object> dataMap) |
IView |
XMLResponseErrorProcessor.showErrorMsg(IWebMvc owner,
String code,
String msg,
Map<String,Object> dataMap) |
IView |
DefaultWebErrorProcessor.showErrorMsg(IWebMvc owner,
String code,
String msg,
Map<String,Object> dataMap) |
IView |
DefaultResponseErrorProcessor.showErrorMsg(IWebMvc owner,
String code,
String msg,
Map<String,Object> dataMap) |
boolean |
DefaultSignatureValidator.validate(IWebMvc owner,
RequestMeta requestMeta,
SignatureValidate signatureValidate) |
Modifier and Type | Method and Description |
---|---|
static RequestExecutor |
RequestExecutor.bind(IWebMvc owner,
RequestMeta requestMeta) |
static GenericDispatcher |
GenericDispatcher.create(IWebMvc owner) |
static IView |
RequestExecutor.doProcessResultToView(IWebMvc owner,
RequestMeta requestMeta,
Object result) |
static IView |
RequestExecutor.doSwitchView(IWebMvc owner,
Type.View viewType,
String[] viewParts) |
Constructor and Description |
---|
MultipartRequestWrapper(IWebMvc owner,
HttpServletRequest request) |
Modifier and Type | Method and Description |
---|---|
static IWebMvc |
WebUtils.getOwner() |
Modifier and Type | Method and Description |
---|---|
static CookieHelper |
CookieHelper.bind(IWebMvc owner) |
static FileUploadHelper |
FileUploadHelper.bind(IWebMvc owner,
HttpServletRequest request) |
static CookieHelper |
CookieHelper.bind(IWebMvc owner,
HttpServletRequest request,
HttpServletResponse response) |
static IWebResultBuilder |
WebResult.builder(IWebMvc owner,
ErrorCode errorCode) |
static IWebResultBuilder |
WebResult.builder(IWebMvc owner,
String resourceName,
ErrorCode errorCode) |
static IView |
WebUtils.buildErrorView(IWebMvc owner,
ErrorCode errorCode) |
static IView |
WebUtils.buildErrorView(IWebMvc owner,
ErrorCode errorCode,
String redirectUrl,
int timeInterval) |
static IView |
WebUtils.buildErrorView(IWebMvc owner,
int code,
String msg) |
static IView |
WebUtils.buildErrorView(IWebMvc owner,
int code,
String msg,
String redirectUrl,
int timeInterval) |
static IView |
WebUtils.buildErrorView(IWebMvc owner,
int code,
String msg,
String redirectUrl,
int timeInterval,
Map<String,Object> data) |
static IView |
WebUtils.buildErrorView(IWebMvc owner,
String resourceName,
ErrorCode errorCode) |
static IView |
WebUtils.buildErrorView(IWebMvc owner,
String resourceName,
ErrorCode errorCode,
String redirectUrl,
int timeInterval) |
static IView |
WebUtils.buildErrorView(IWebMvc owner,
String resourceName,
int code,
String msg,
String redirectUrl,
int timeInterval,
Map<String,Object> data) |
static IView |
WebUtils.buildErrorView(IWebMvc owner,
String resourceName,
String code,
String msg,
String redirectUrl,
int timeInterval,
Map<String,Object> data) |
static WebResult |
WebResult.create(IWebMvc owner,
ErrorCode errorCode) |
static WebResult |
WebResult.create(IWebMvc owner,
String resourceName,
ErrorCode errorCode) |
static String |
WebUtils.errorCodeI18n(IWebMvc owner,
IExceptionProcessor.Result result) |
static String |
WebUtils.errorCodeI18n(IWebMvc owner,
int code,
String defaultValue) |
static String |
WebUtils.errorCodeI18n(IWebMvc owner,
String resourceName,
IExceptionProcessor.Result result) |
static String |
WebUtils.errorCodeI18n(IWebMvc owner,
String resourceName,
int code,
String defaultValue) |
static String |
WebUtils.errorCodeI18n(IWebMvc owner,
String code,
String defaultValue) |
static String |
WebUtils.errorCodeI18n(IWebMvc owner,
String resourceName,
String code,
String defaultValue) |
static String |
WebUtils.httpStatusI18n(IWebMvc owner,
int code) |
static String |
WebUtils.httpStatusI18n(IWebMvc owner,
String resourceName,
int code) |
static String |
WebUtils.i18nStr(IWebMvc owner,
String resourceKey)
加载i18n资源键值
|
static String |
WebUtils.i18nStr(IWebMvc owner,
String resourceKey,
String defaultValue)
加载i18n资源键值
|
static String |
WebUtils.i18nStr(IWebMvc owner,
String resourceName,
String resourceKey,
String defaultValue) |
Modifier and Type | Method and Description |
---|---|
IView |
View.IViewBuilder.build(IWebMvc owner,
String requestMapping)
构建视图
|
protected void |
AbstractView.doViewInit(IWebMvc owner)
初始化配置参数(全局)
|
static FreemarkerView |
View.freemarkerView(IWebMvc owner,
String path) |
static String |
AbstractView.getBaseViewPath(IWebMvc owner) |
static HtmlView |
View.htmlView(IWebMvc owner,
String htmlFile) |
static JspView |
View.jspView(IWebMvc owner) |
static JspView |
View.jspView(IWebMvc owner,
String path) |
static PairObject<IView,String> |
View.mappingToView(IWebMvc owner,
String requestMapping) |
static VelocityView |
View.velocityView(IWebMvc owner,
String path) |
Modifier and Type | Method and Description |
---|---|
static JspView |
JspView.bind(IWebMvc owner) |
static HtmlView |
HtmlView.bind(IWebMvc owner,
String htmlFile) |
static JspView |
JspView.bind(IWebMvc owner,
String path) |
static VelocityView |
VelocityView.bind(IWebMvc owner,
String path) |
static FreemarkerView |
FreemarkerView.bind(IWebMvc owner,
String path) |
protected void |
VelocityView.doViewInit(IWebMvc owner) |
protected void |
FreemarkerView.doViewInit(IWebMvc owner) |
Constructor and Description |
---|
FreemarkerView(IWebMvc owner,
String path)
构造器
|
JspView(IWebMvc owner) |
JspView(IWebMvc owner,
String path)
构造器
|
VelocityView(IWebMvc owner,
String path)
构造器
|
Copyright © 2022. All rights reserved.