| 构造器和说明 |
|---|
MappingDef(int index,
BindInfo<?> targetType,
String mappingTo,
Predicate<Method> methodMatcher) |
MappingDef(int index,
BindInfo<?> targetType,
String mappingTo,
Predicate<Method> methodMatcher,
boolean needAnno) |
| 限定符和类型 | 方法和说明 |
|---|---|
Method |
findMethod(String requestMethod) |
Map<String,Method> |
getHttpMapping() |
String[] |
getHttpMethodSet()
获取方法
|
int |
getIndex() |
String |
getMappingTo()
获取映射的地址
|
String |
getMappingToMatches()
获取映射的地址的正则表达式形式
|
String |
getSpecialContentType(String requestMethod) |
BindInfo<?> |
getTargetType()
获取目标类型
|
boolean |
isAsync(javax.servlet.http.HttpServletRequest request) |
boolean |
matchingMapping(javax.servlet.http.HttpServletRequest request)
首先测试路径是否匹配,然后判断Restful实例是否支持这个 请求方法。
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindMethodpublic MappingDef(int index,
BindInfo<?> targetType,
String mappingTo,
Predicate<Method> methodMatcher)
public BindInfo<?> getTargetType()
MappinggetTargetType 在接口中 Mappingpublic String getMappingTo()
getMappingTo 在接口中 Mappingpublic String getMappingToMatches()
MappinggetMappingToMatches 在接口中 Mappingpublic int getIndex()
public String[] getHttpMethodSet()
MappinggetHttpMethodSet 在接口中 Mappingpublic boolean matchingMapping(javax.servlet.http.HttpServletRequest request)
matchingMapping 在接口中 Mappingpublic Method findMethod(String requestMethod)
findMethod 在接口中 Mappingpublic String getSpecialContentType(String requestMethod)
getSpecialContentType 在接口中 Mappingpublic boolean isAsync(javax.servlet.http.HttpServletRequest request)
Copyright © 2020. All rights reserved.