クラス FixedContentNegotiationStrategy

java.lang.ObjectSE
org.springframework.web.accept.FixedContentNegotiationStrategy
実装されたすべてのインターフェース:
ContentNegotiationStrategy

public class FixedContentNegotiationStrategy extends ObjectSE implements ContentNegotiationStrategy
固定コンテンツ型を返す ContentNegotiationStrategy
導入:
3.2
作成者:
Rossen Stoyanchev
  • コンストラクターの詳細

    • FixedContentNegotiationStrategy

      public FixedContentNegotiationStrategy(MediaType contentType)
      単一のデフォルト MediaType を持つコンストラクター。
    • FixedContentNegotiationStrategy

      public FixedContentNegotiationStrategy(ListSE<MediaType> contentTypes)
      さまざまなコンテンツ型をサポートするアプリケーションで使用するために返されるデフォルトの MediaType の順序付きリストを持つコンストラクター。

      他のデフォルトのメディア型をサポートしていない宛先が存在する場合は、末尾に MediaType.ALL を追加することを検討してください。

      導入:
      5.0
  • メソッドの詳細