类 FixedContentNegotiationStrategy

java.lang.Object
cn.taketoday.web.accept.FixedContentNegotiationStrategy
所有已实现的接口:
ContentNegotiationStrategy

public class FixedContentNegotiationStrategy extends Object implements ContentNegotiationStrategy
A ContentNegotiationStrategy that returns a fixed content type.
从以下版本开始:
4.0
作者:
Rossen Stoyanchev
  • 字段详细资料

  • 构造器详细资料

    • FixedContentNegotiationStrategy

      public FixedContentNegotiationStrategy(MediaType contentType)
      Constructor with a single default MediaType.
    • FixedContentNegotiationStrategy

      public FixedContentNegotiationStrategy(List<MediaType> contentTypes)
      Constructor with an ordered List of default MediaType's to return for use in applications that support a variety of content types.

      Consider appending MediaType.ALL at the end if destinations are present which do not support any of the other default media types.

  • 方法详细资料