クラスの使用
org.springframework.hateoas.CollectionModel
CollectionModel を使用するパッケージ
パッケージ
説明
REST Web サービスの
Link およびリンク駆動表現の作成を容易にする値オブジェクト。HAL 固有の拡張機能、SPI、Jackson のカスタマイズ。
ハイパーメディア処理用のサーバー側コンポーネント。
org.springframework.hateoas 内の CollectionModel 使用
修飾子と型クラス説明classPagedModel<T>ページング可能なコレクションのバインディングレスポンス表現を実装するための DTO。classSlicedModel<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(org.springframework.core.ParameterizedTypeReference<T> type) フォールバック型として定義された指定された型で新しい空のコレクションモデルを作成します。static <T> CollectionModel<T>CollectionModel.empty(org.springframework.core.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(org.springframework.core.ParameterizedTypeReference<?> type) 基になるコレクションが空の場合に備えて、指定された型をフォールバック要素型として宣言します。CollectionModel.withFallbackType(org.springframework.core.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.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 のメソッド修飾子と型メソッド説明voidSimpleRepresentationModelAssembler.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, org.springframework.web.server.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, org.springframework.web.server.ServerWebExchange exchange) default reactor.core.publisher.Mono<CollectionModel<EntityModel<T>>>SimpleReactiveRepresentationModelAssembler.toCollectionModel(reactor.core.publisher.Flux<? extends T> entities, org.springframework.web.server.ServerWebExchange exchange) 指定されたすべてのエンティティをリソースに変換し、コレクションもリソースとしてラップします。型 CollectionModel のパラメーターを持つ org.springframework.hateoas.server.reactive のメソッド修飾子と型メソッド説明default CollectionModel<EntityModel<T>>SimpleReactiveRepresentationModelAssembler.addLinks(CollectionModel<EntityModel<T>> resources, org.springframework.web.server.ServerWebExchange exchange) CollectionModelコレクションに追加するリンクを定義します。