クラス Problem

java.lang.ObjectSE
org.springframework.hateoas.mediatype.problem.Problem
既知の直属サブクラス
Problem.ExtendedProblem

public class Problem extends ObjectSE
RFC-7807 問題コードのカプセル化。そのまま使用できますが、ドメイン固有の詳細をサポートするように拡張することもできます。
作成者:
Greg Turnquist, Oliver Drotbohm
  • コンストラクターの詳細

  • メソッドの詳細

    • create

      public static Problem create()
      空の Problem インスタンスを返します。
      戻り値:
      空の Problem インスタンス。
    • create

      public static <T> Problem.ExtendedProblem<T> create(T payload)
      指定されたペイロードを追加のプロパティとして持つ Problem.ExtendedProblem を返します。
      型パラメーター:
      T -
      パラメーター:
      payload - null であってはなりません。
      戻り値:
    • statusOnly

      public static Problem statusOnly(HttpStatus status)
      指定された HttpStatusRFC7807 で定義されたデフォルトを持つ Problem インスタンスを返します。
      パラメーター:
      status - null であってはなりません。
      戻り値:
      関連事項:
    • withType

      public Problem withType(@Nullable URISE type)
      属性をコピーして型を置き換えることにより、新しい Problem を作成します。
      パラメーター:
      type -
      戻り値:
    • withTitle

      public Problem withTitle(@Nullable StringSE title)
      属性をコピーしてタイトルを置き換えることにより、新しい Problem を作成します。
      パラメーター:
      title -
      戻り値:
    • withStatus

      public Problem withStatus(@Nullable HttpStatus status)
      属性をコピーしてステータスを置き換えることにより、新しい Problem を作成します。
      パラメーター:
      status -
      戻り値:
    • withDetail

      public Problem withDetail(@Nullable StringSE detail)
      属性をコピーして詳細を置き換えることにより、新しい Problem を作成します。
      パラメーター:
      detail -
      戻り値:
    • withInstance

      public Problem withInstance(@Nullable URISE instance)
      属性をコピーしてインスタンスを置き換えることにより、新しい Problem を作成します。
      パラメーター:
      instance -
      戻り値:
    • withProperties

      public <T> Problem.ExtendedProblem<T> withProperties(T payload)
      指定されたペイロードを追加のプロパティとして使用して、新しい Problem.ExtendedProblem を作成します。
      型パラメーター:
      T -
      パラメーター:
      payload - null であってはなりません。
      戻り値:
    • withProperties

      指定されたコンシューマーによってペイロードとして入力された MapSE<StringSE,ObjectSE> を持つ Problem.ExtendedProblem を返します。
      パラメーター:
      consumer - null であってはなりません。
      戻り値:
    • withProperties

      public Problem.ExtendedProblem<MapSE<StringSE,ObjectSE>> withProperties(MapSE<StringSE,ObjectSE> properties)
      指定された MapSE アンラップを追加のプロパティとして持つ Problem.ExtendedProblem を返します。
      パラメーター:
      properties - null であってはなりません。
      戻り値:
    • getType

      @Nullable public URISE getType()
    • getTitle

      @Nullable public StringSE getTitle()
    • getStatus

      @Nullable public HttpStatus getStatus()
    • getDetail

      @Nullable public StringSE getDetail()
    • getInstance

      @Nullable public URISE getInstance()
    • equals

      public boolean equals(ObjectSE o)
      オーバーライド:
      クラス ObjectSEequalsSE 
    • hashCode

      public int hashCode()
      オーバーライド:
      クラス ObjectSEhashCode 
    • toString

      public StringSE toString()
      オーバーライド:
      クラス ObjectSEtoString