public class DefaultRequestMappingParser extends Object implements IRequestMappingParser
Constructor and Description |
---|
DefaultRequestMappingParser() |
Modifier and Type | Method and Description |
---|---|
Map<String,RequestMeta> |
getRequestMetas(Type.HttpMethod httpMethod)
根据HTTP请求方式获取对应的控制器请求映射元数据描述映射
|
RequestMeta |
parse(IRequestContext context)
分析请求映射串,匹配成功则返回对应映射集合的键值,同时处理请求串中的参数变量存入WebContext容器中的PathVariable参数池
|
void |
registerRequestMeta(RequestMeta requestMeta)
注册控制器请求映射元数据描述
|
public final void registerRequestMeta(RequestMeta requestMeta)
IRequestMappingParser
registerRequestMeta
in interface IRequestMappingParser
requestMeta
- 控制器请求映射元数据描述public Map<String,RequestMeta> getRequestMetas(Type.HttpMethod httpMethod)
IRequestMappingParser
getRequestMetas
in interface IRequestMappingParser
httpMethod
- HTTP请求方式public final RequestMeta parse(IRequestContext context)
IRequestMappingParser
parse
in interface IRequestMappingParser
context
- 请求上下文对象Copyright © 2022. All rights reserved.