T
- コンテキストの型 public interface ContextResolver<T>
ContextResolver
実装には、Produces
でアノテーションを付けて、適切と見なされるメディア型を制限できます。ContextResolver
契約を実装するプロバイダーは、プログラムで JAX-RS ランタイムに登録するか、プロバイダーのスキャンフェーズ中に JAX-RS ランタイムによって自動的に検出されるように @Provider
アノテーションを付ける必要があります。
Context
, Providers.getContextResolver(Class, jakarta.ws.rs.core.MediaType)
, Provider
, Produces
修飾子と型 | メソッドと説明 |
---|---|
T | getContext(ClassSE<?> type) 提供された型に適用可能な型 T のコンテキストを取得します。 |
Copyright © 2018,2020 Eclipse Foundation.
Use is subject to license terms.