public abstract class RuntimeDelegate extends ObjectSE
修飾子と型 | クラスと説明 |
---|---|
static interface | RuntimeDelegate.HeaderDelegate<T> HTTP ヘッダーの文字列形式と対応する JAX-RS 型 T の間の変換を担当するデリゲートの契約を定義します。 |
修飾子と型 | フィールドと説明 |
---|---|
static StringSE | JAXRS_RUNTIME_DELEGATE_PROPERTY getInstance() から返される RuntimeDelegate 実装を識別するプロパティの名前。 |
修飾子 | コンストラクターと説明 |
---|---|
protected | RuntimeDelegate() カスタム実装が RuntimeDelegate クラスを継承できるようにします。 |
修飾子と型 | メソッドと説明 |
---|---|
abstract <T> T | createEndpoint(Application application, ClassSE<T> endpointType) 指定されたエンドポイント型の構成済みインスタンスを作成します。 |
abstract <T> RuntimeDelegate.HeaderDelegate<T> | createHeaderDelegate(ClassSE<T> type) 指定されたクラスの RuntimeDelegate.HeaderDelegate のインスタンスを取得します。 |
abstract Link.Builder | createLinkBuilder() Link.Builder の新しいインスタンスを作成します。 |
abstract Response.ResponseBuilder | createResponseBuilder() Response.ResponseBuilder の新しいインスタンスを作成します。 |
abstract UriBuilder | createUriBuilder() UriBuilder の新しいインスタンスを作成します。 |
abstract Variant.VariantListBuilder | createVariantListBuilder() Variant.VariantListBuilder の新しいインスタンスを作成します。 |
static RuntimeDelegate | getInstance() RuntimeDelegate インスタンスを取得します。 |
static void | setInstance(RuntimeDelegate rd) JAX-RS クラスで使用されるランタイムデリゲートを設定します。 |
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSE
public static final StringSE JAXRS_RUNTIME_DELEGATE_PROPERTY
getInstance()
から返される RuntimeDelegate
実装を識別するプロパティの名前。public static RuntimeDelegate getInstance()
RuntimeDelegate
インスタンスを取得します。インスタンスがまだ作成されておらず、setInstance(RuntimeDelegate)
を介して設定されていない場合、最初の呼び出しでインスタンスが作成され、将来の使用のためにキャッシュされます。使用する RuntimeDelegate サブクラスを見つけるために使用されるアルゴリズムは、次の手順で構成されています。
META-INF/services/jakarta.ws.rs.ext.RuntimeDelegate
という名前のリソースが存在する場合、その最初の行が存在する場合は、実装クラスの UTF-8 エンコード名として使用されます。java.util.Properties.load(InputStream)
メソッドで読み取り可能であり、キーが jakarta.ws.rs.ext.RuntimeDelegate
であるエントリが含まれている場合、そのエントリの値が実装クラスの名前として使用されます。jakarta.ws.rs.ext.RuntimeDelegate
という名前のシステムプロパティが定義されている場合、その値が実装クラスの名前として使用されます。RuntimeDelegate
のインスタンス。public static void setInstance(RuntimeDelegate rd)
getInstance()
の前に呼び出されない場合は、getInstance()
に従って実装が求められます。rd
- ランタイムデリゲートインスタンス SecurityExceptionSE
- セキュリティマネージャーが存在し、権限 ReflectPermission("suppressAccessChecks" ) が付与されていない場合。public abstract UriBuilder createUriBuilder()
UriBuilder
の新しいインスタンスを作成します。UriBuilder
インスタンス。UriBuilder
public abstract Response.ResponseBuilder createResponseBuilder()
Response.ResponseBuilder
の新しいインスタンスを作成します。ResponseBuilder
インスタンス。Response.ResponseBuilder
public abstract Variant.VariantListBuilder createVariantListBuilder()
Variant.VariantListBuilder
の新しいインスタンスを作成します。VariantListBuilder
インスタンス。Variant.VariantListBuilder
public abstract <T> T createEndpoint(Application application, ClassSE<T> endpointType) throws IllegalArgumentExceptionSE, UnsupportedOperationExceptionSE
T
- エンドポイント型。application
- アプリケーション構成。endpointType
- 作成するエンドポイントインスタンスの型。IllegalArgumentExceptionSE
- アプリケーションが null の場合、またはリクエストされたエンドポイント型がサポートされていない場合。UnsupportedOperationExceptionSE
- 実装がエンドポイント型をサポートしていない場合。public abstract <T> RuntimeDelegate.HeaderDelegate<T> createHeaderDelegate(ClassSE<T> type) throws IllegalArgumentExceptionSE
RuntimeDelegate.HeaderDelegate
のインスタンスを取得します。型の次の値をサポートするには、実装が必要です: CacheControl
、Cookie
、EntityTag
、Link
、NewCookie
、MediaType
、java.util.Date
。T
- ヘッダー型。type
- ヘッダーのクラス。HeaderDelegate
のインスタンス。IllegalArgumentExceptionSE
- 型が null
の場合。RuntimeDelegate.HeaderDelegate
public abstract Link.Builder createLinkBuilder()
Link.Builder
の新しいインスタンスを作成します。Link.Builder
インスタンス。Link.Builder
Copyright © 2018,2020 Eclipse Foundation.
Use is subject to license terms.