クラス JsonPathLinkDiscoverer
java.lang.ObjectSE
org.springframework.hateoas.client.JsonPathLinkDiscoverer
- 実装済みのインターフェース一覧:
LinkDiscoverer,org.springframework.plugin.core.Plugin<org.springframework.http.MediaType>
表現内のリンクを見つけるために
JsonPath を使用する LinkDiscoverer。- 作成者:
- Oliver Gierke, Greg Turnquist
フィールド概要
フィールドコンストラクター概要
コンストラクターコンストラクター説明JsonPathLinkDiscoverer(StringSE pathTemplate, org.springframework.http.MediaType... mediaTypes) 指定されたMediaTypeをサポートする指定されたパステンプレートを使用して、新しいJsonPathLinkDiscovererを作成します。方法の概要
修飾子と型メソッド説明protected LinkextractLink(ObjectSE element, LinkRelation rel) 関連する属性を抽出してLinkを生成するための各LinkDiscovererのコールバック。findLinksWithRel(LinkRelation relation, InputStreamSE representation) 指定されたInputStreamSE 表現で見つかった指定されたLinkRelationを持つすべてのリンクを返します。findLinksWithRel(LinkRelation relation, StringSE representation) 指定されたStringSE 表現で見つかった指定されたLinkRelationを持つすべてのリンクを返します。findLinkWithRel(LinkRelation relation, InputStreamSE representation) 指定されたInputStreamSE 表現で指定されたLinkRelationを持つ単一のリンクを検索します。findLinkWithRel(LinkRelation relation, StringSE representation) 指定されたStringSE 表現で指定されたLinkRelationを持つ単一のリンクを検索します。booleansupports(@NonNull org.springframework.http.MediaType delimiter) クラス java.lang.ObjectSE から継承されたメソッド
clone, equalsSE, finalize, getClass, hashCode, notify, notifyAll, toString, wait, waitSE, waitSEインターフェース org.springframework.hateoas.client.LinkDiscoverer から継承されたメソッド
findLinksWithRel, findLinksWithRel, findLinkWithRel, findLinkWithRel, findRequiredLinkWithRel, findRequiredLinkWithRel
フィールドの詳細
mediaTypes
コンストラクターの詳細
JsonPathLinkDiscoverer
public JsonPathLinkDiscoverer(StringSE pathTemplate, org.springframework.http.MediaType... mediaTypes) 指定されたパステンプレートを用いて、指定されたMediaTypeをサポートする新しいJsonPathLinkDiscovererを作成します。テンプレートには、リレーション型に置き換えられる%sプレースホルダが 1 つ含まれている必要があります。- パラメーター:
pathTemplate- null または空にすることはできず、単一のプレースホルダーを含めることはできません。mediaTypes-MediaTypeをサポートします。
方法の詳細
findLinkWithRel
インターフェースからコピーされた説明:LinkDiscoverer指定されたStringSE 表現で指定されたLinkRelationを持つ単一のリンクを検索します。- 次で指定:
- インターフェース
LinkDiscoverer内のfindLinkWithRel - パラメーター:
relation- null であってはなりません。representation- null であってはなりません。- 戻り値:
- 指定された関係型が見つかった最初のリンク、または何も見つからない場合は
Optional.empty()。
findLinkWithRel
インターフェースからコピーされた説明:LinkDiscoverer指定されたInputStreamSE 表現で指定されたLinkRelationを持つ単一のリンクを検索します。- 次で指定:
- インターフェース
LinkDiscoverer内のfindLinkWithRel - パラメーター:
relation- null であってはなりません。representation- null であってはなりません。- 戻り値:
- 指定された
LinkRelationが見つかった最初のLink、または見つからなかった場合はOptional.empty()。
findLinksWithRel
インターフェースからコピーされた説明:LinkDiscoverer指定されたStringSE 表現で見つかった指定されたLinkRelationを持つすべてのリンクを返します。- 次で指定:
- インターフェース
LinkDiscoverer内のfindLinksWithRel - パラメーター:
relation- null であってはなりません。representation- null であってはなりません。- 戻り値:
- null になることはありません。
findLinksWithRel
インターフェースからコピーされた説明:LinkDiscoverer指定されたInputStreamSE 表現で見つかった指定されたLinkRelationを持つすべてのリンクを返します。- 次で指定:
- インターフェース
LinkDiscoverer内のfindLinksWithRel - パラメーター:
relation- null であってはなりません。representation- null であってはなりません。- 戻り値:
- null になることはありません。
supports
public boolean supports(@NonNull org.springframework.http.MediaType delimiter) - 次で指定:
- インターフェース
org.springframework.plugin.core.Plugin<org.springframework.http.MediaType>内のsupports
extractLink
関連する属性を抽出してLinkを生成するための各LinkDiscovererのコールバック。- パラメーター:
element-rel-- 戻り値:
- リンク