类的使用
cn.taketoday.web.handler.condition.RequestMethodsRequestCondition
程序包
说明
Common MVC logic for matching incoming requests based on conditions.
Method handler
-
cn.taketoday.web.handler.condition中RequestMethodsRequestCondition的使用
修饰符和类型字段说明private static final EnumMap<HttpMethod,RequestMethodsRequestCondition> RequestMethodsRequestCondition.requestMethodConditionCachePer HTTP method cache to return ready instances from getMatchingCondition.修饰符和类型方法说明RequestMethodsRequestCondition.combine(RequestMethodsRequestCondition other) Returns a new instance with a union of the HTTP request methods from "this" and the "other" instance.RequestMethodsRequestCondition.getMatchingCondition(RequestContext request) Check if any of the HTTP request methods match the given request and return an instance that contains the matching HTTP request method only.private RequestMethodsRequestConditionRequestMethodsRequestCondition.matchPreFlight(RequestContext request) On a pre-flight request match to the would-be, actual request.private RequestMethodsRequestConditionRequestMethodsRequestCondition.matchRequestMethod(HttpMethod requestMethod) 修饰符和类型方法说明RequestMethodsRequestCondition.combine(RequestMethodsRequestCondition other) Returns a new instance with a union of the HTTP request methods from "this" and the "other" instance.intRequestMethodsRequestCondition.compareTo(RequestMethodsRequestCondition other, RequestContext request) Returns: 0 if the two conditions contain the same number of HTTP request methods Less than 0 if "this" instance has an HTTP request method but "other" doesn't Greater than 0 "other" has an HTTP request method but "this" doesn't -
cn.taketoday.web.handler.method中RequestMethodsRequestCondition的使用
修饰符和类型字段说明private static final RequestMethodsRequestConditionRequestMappingInfo.EMPTY_REQUEST_METHODSprivate final RequestMethodsRequestConditionRequestMappingInfo.methodsConditionprivate RequestMethodsRequestConditionRequestMappingInfo.MutateBuilder.methodsCondition修饰符和类型方法说明RequestMappingInfo.getMethodsCondition()Return the HTTP request methods of thisRequestMappingInfo; or instance with 0 request methods (nevernull).修饰符和类型方法说明private static intRequestMappingInfo.calculateHashCode(PathPatternsRequestCondition pathPatterns, RequestMethodsRequestCondition methods, ParamsRequestCondition params, HeadersRequestCondition headers, ConsumesRequestCondition consumes, ProducesRequestCondition produces, RequestConditionHolder custom) 限定符构造器说明(专用程序包)RequestMappingInfo(String name, PathPatternsRequestCondition pathPatternsCondition, RequestMethodsRequestCondition methodsCondition, ParamsRequestCondition paramsCondition, HeadersRequestCondition headersCondition, ConsumesRequestCondition consumesCondition, ProducesRequestCondition producesCondition, RequestConditionHolder customCondition, RequestMappingInfo.BuilderConfiguration options, boolean combine)