クラスの使用
org.springframework.hateoas.CollectionModel
CollectionModel を使用するパッケージ
パッケージ
説明
REST Web サービスの
Link
およびリンク駆動表現の作成を容易にする値オブジェクト。HAL 固有の拡張機能、SPI、Jackson のカスタマイズ。
Vnd.Error メディア型。
ハイパーメディア処理用のサーバー側コンポーネント。
org.springframework.hateoas 内の CollectionModel 使用
修飾子と型クラス説明class
PagedModel<T>
ページング可能なコレクションのバインディングレスポンス表現を実装するための DTO。class
SlicedModel<T>
DTO は、スライスコレクションのバインディングレスポンス表現を実装します。CollectionModel を返す org.springframework.hateoas のメソッド修飾子と型メソッド説明static <T> CollectionModel<T>
CollectionModel.empty()
新しい空のコレクションモデルを作成します。static <T> CollectionModel<T>
フォールバック型として定義された指定された型で新しい空のコレクションモデルを作成します。static <T> CollectionModel<T>
CollectionModel.empty
(IterableSE<Link> links) 指定されたリンクで新しい空のコレクションモデルを作成します。static <T> CollectionModel<T>
CollectionModel.empty
(ParameterizedTypeReference<T> type) フォールバック型として定義された指定された型で新しい空のコレクションモデルを作成します。static <T> CollectionModel<T>
CollectionModel.empty
(ResolvableType elementType) フォールバック型として定義された指定された型で新しい空のコレクションモデルを作成します。static <T> CollectionModel<T>
指定されたリンクで新しい空のコレクションモデルを作成します。static <T> CollectionModel<T>
CollectionModel.of
(IterableSE<T> content) 指定されたコンテンツでCollectionModel
インスタンスを作成します。static <T> CollectionModel<T>
CollectionModel.of
(IterableSE<T> content, IterableSE<Link> links) 指定されたコンテンツとLink
でCollectionModel
インスタンスを作成します。static <T> CollectionModel<T>
CollectionModel.of
(IterableSE<T> content, Link... links) 指定されたコンテンツとLink
を使用してCollectionModel
インスタンスを作成します (オプション)。CollectionModel.withFallbackType
(ClassSE<? super T> type, ClassSE<?>... generics) 基になるコレクションが空の場合に備えて、指定された型をフォールバック要素型として宣言します。CollectionModel.withFallbackType
(ParameterizedTypeReference<?> type) 基になるコレクションが空の場合に備えて、指定された型をフォールバック要素型として宣言します。CollectionModel.withFallbackType
(ResolvableType type) 基になるコレクションが空の場合に備えて、指定された型をフォールバック要素型として宣言します。static <T extends EntityModel<S>,
S>
CollectionModel<T>CollectionModel.wrap
(IterableSE<S> content) 指定されたドメインクラスインスタンスをEntityModel
にラップして、新しいCollectionModel
インスタンスを作成します。org.springframework.hateoas.mediatype.hal 内の CollectionModel 使用
org.springframework.hateoas.mediatype.vnderrors 内の CollectionModel 使用
org.springframework.hateoas.server 内の CollectionModel 使用
修飾子と型メソッド説明default CollectionModel<D>
RepresentationModelAssembler.toCollectionModel
(IterableSE<? extends T> entities) default CollectionModel<EntityModel<T>>
SimpleRepresentationModelAssembler.toCollectionModel
(IterableSE<? extends T> entities) 指定されたすべてのエンティティをリソースに変換し、コレクションもリソースとしてラップします。型 CollectionModel のパラメーターを持つ org.springframework.hateoas.server のメソッド修飾子と型メソッド説明void
SimpleRepresentationModelAssembler.addLinks
(CollectionModel<EntityModel<T>> resources) CollectionModel
コレクションに追加するリンクを定義します。org.springframework.hateoas.server.mvc 内の CollectionModel 使用
修飾子と型メソッド説明RepresentationModelAssemblerSupport.toCollectionModel
(IterableSE<? extends T> entities) org.springframework.hateoas.server.reactive 内の CollectionModel 使用
修飾子と型メソッド説明default CollectionModel<EntityModel<T>>
SimpleReactiveRepresentationModelAssembler.addLinks
(CollectionModel<EntityModel<T>> resources, ServerWebExchange exchange) CollectionModel
コレクションに追加するリンクを定義します。型 CollectionModel の引数を持つ型を返す org.springframework.hateoas.server.reactive のメソッド修飾子と型メソッド説明default reactor.core.publisher.Mono<CollectionModel<D>>
ReactiveRepresentationModelAssembler.toCollectionModel
(reactor.core.publisher.Flux<? extends T> entities, ServerWebExchange exchange) default reactor.core.publisher.Mono<CollectionModel<EntityModel<T>>>
SimpleReactiveRepresentationModelAssembler.toCollectionModel
(reactor.core.publisher.Flux<? extends T> entities, ServerWebExchange exchange) 指定されたすべてのエンティティをリソースに変換し、コレクションもリソースとしてラップします。型 CollectionModel のパラメーターを持つ org.springframework.hateoas.server.reactive のメソッド修飾子と型メソッド説明default CollectionModel<EntityModel<T>>
SimpleReactiveRepresentationModelAssembler.addLinks
(CollectionModel<EntityModel<T>> resources, ServerWebExchange exchange) CollectionModel
コレクションに追加するリンクを定義します。
Problem
を使用して、ベンダーに依存しないエラーメッセージを作成します。