类的使用
cn.taketoday.web.handler.condition.ConsumesRequestCondition
使用ConsumesRequestCondition的程序包
程序包
说明
Common MVC logic for matching incoming requests based on conditions.
Method handler
-
cn.taketoday.web.handler.condition中ConsumesRequestCondition的使用
修饰符和类型方法说明ConsumesRequestCondition.combine(ConsumesRequestCondition other) Returns the "other" instance if it has any expressions; returns "this" instance otherwise.ConsumesRequestCondition.getMatchingCondition(RequestContext request) Checks if any of the contained media type expressions match the given request 'Content-Type' header and returns an instance that is guaranteed to contain matching expressions only.修饰符和类型方法说明ConsumesRequestCondition.combine(ConsumesRequestCondition other) Returns the "other" instance if it has any expressions; returns "this" instance otherwise.intConsumesRequestCondition.compareTo(ConsumesRequestCondition other, RequestContext request) Returns: 0 if the two conditions have the same number of expressions Less than 0 if "this" has more or more specific media type expressions Greater than 0 if "other" has more or more specific media type expressions -
cn.taketoday.web.handler.method中ConsumesRequestCondition的使用
修饰符和类型字段说明private final ConsumesRequestConditionRequestMappingInfo.consumesConditionprivate ConsumesRequestConditionRequestMappingInfo.MutateBuilder.consumesConditionprivate static final ConsumesRequestConditionRequestMappingInfo.EMPTY_CONSUMES修饰符和类型方法说明RequestMappingInfo.getConsumesCondition()Return the "consumes" condition of thisRequestMappingInfo; or instance with 0 consumes expressions (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)