类的使用
cn.taketoday.web.handler.condition.ProducesRequestCondition
使用ProducesRequestCondition的程序包
程序包
说明
Common MVC logic for matching incoming requests based on conditions.
Method handler
-
cn.taketoday.web.handler.condition中ProducesRequestCondition的使用
修饰符和类型方法说明ProducesRequestCondition.combine(ProducesRequestCondition other) Returns the "other" instance if it has any expressions; returns "this" instance otherwise.ProducesRequestCondition.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.修饰符和类型方法说明ProducesRequestCondition.combine(ProducesRequestCondition other) Returns the "other" instance if it has any expressions; returns "this" instance otherwise.private intProducesRequestCondition.compareMatchingMediaTypes(ProducesRequestCondition condition1, int index1, ProducesRequestCondition condition2, int index2) intProducesRequestCondition.compareTo(ProducesRequestCondition other, RequestContext request) Compares this and another "produces" condition as follows: Sort 'Accept' header media types by quality value viaMimeTypeUtils.sortBySpecificity(List)and iterate the list.限定符构造器说明privateProducesRequestCondition(List<MediaTypeExpression> expressions, ProducesRequestCondition other) Private constructor for internal use to create matching conditions. -
cn.taketoday.web.handler.method中ProducesRequestCondition的使用
修饰符和类型字段说明private static final ProducesRequestConditionRequestMappingInfo.EMPTY_PRODUCESprivate ProducesRequestConditionRequestMappingInfo.MutateBuilder.producesConditionprivate final ProducesRequestConditionRequestMappingInfo.producesCondition修饰符和类型方法说明RequestMappingInfo.getProducesCondition()Return the "produces" condition of thisRequestMappingInfo; or instance with 0 produces 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)