|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectjavax.xml.ws.spi.Provider
public abstract class Provider
ServiceDelegate および Endpoint オブジェクトのサービスプロバイダ。
| フィールドの概要 | |
|---|---|
static String |
JAXWSPROVIDER_PROPERTY
Provider 実装クラスの名前の検索に使用されるプロパティーを表す定数。 |
| コンストラクタの概要 | |
|---|---|
protected |
Provider()
新しい Provider インスタンスを作成します。 |
| メソッドの概要 | ||
|---|---|---|
abstract Endpoint |
createAndPublishEndpoint(String address,
Object implementor)
与えられたアドレスと実装オブジェクトを持つ端点オブジェクトを作成および発行します。 |
|
abstract Endpoint |
createEndpoint(String bindingId,
Object implementor)
指定されたバインディングおよび実装オブジェクトを持つ、端点オブジェクトを作成します。 |
|
abstract ServiceDelegate |
createServiceDelegate(URL wsdlDocumentLocation,
QName serviceName,
Class serviceClass)
サービス委譲オブジェクトを作成します。 |
|
abstract W3CEndpointReference |
createW3CEndpointReference(String address,
QName serviceName,
QName portName,
List<Element> metadata,
String wsdlDocumentLocation,
List<Element> referenceParameters)
W3CEndpointReference を作成するファクトリメソッドです。 |
|
abstract
|
getPort(EndpointReference endpointReference,
Class<T> serviceEndpointInterface,
WebServiceFeature... features)
getPort メソッドはプロキシを返します。 |
|
static Provider |
provider()
新しいプロバイダオブジェクトを作成します。 |
|
abstract EndpointReference |
readEndpointReference(Source eprInfoset)
eprInfoset に含まれている情報セットから EndpointReference を読み取ります。 |
|
| クラス java.lang.Object から継承されたメソッド |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| フィールドの詳細 |
|---|
public static final String JAXWSPROVIDER_PROPERTY
Provider 実装クラスの名前の検索に使用されるプロパティーを表す定数。
| コンストラクタの詳細 |
|---|
protected Provider()
| メソッドの詳細 |
|---|
public static Provider provider()
プロバイダのサブクラスの場所を特定するために使用されるアルゴリズムは、次のステップから構成されます。
META-INF/services/javax.xml.ws.spi.Provider という名前のリソースが存在する場合、それの最初の行 (存在する場合) が実装クラスの UTF-8 エンコード名として使用されます。
java.util.Properties.load(InputStream) メソッドによって読み込み可能であり、キーが javax.xml.ws.spi.Provider であるエントリが含まれる場合、そのエントリの値が実装クラスの名前として使用されます。
javax.xml.ws.spi.Provider という名前のシステムプロパティーが定義されている場合、その値が実装クラスの名前として使用されます。
public abstract ServiceDelegate createServiceDelegate(URL wsdlDocumentLocation,
QName serviceName,
Class serviceClass)
wsdlDocumentLocation - サービス用の WSDL 文書をポイントする URL。存在しない場合は nullserviceName - サービスの修飾名serviceClass - javax.xml.ws.Service、または、そのサブクラスのいずれかであるサービスクラス
public abstract Endpoint createEndpoint(String bindingId,
Object implementor)
bindingId - 希望するバインディング (SOAP/HTTP など) を指定する URIimplementor - 着信要求のディスパッチ先となるサービス実装オブジェクト。対応しているクラスが、すべての必要な Web サービス注釈で注釈されている必要がある
public abstract Endpoint createAndPublishEndpoint(String address,
Object implementor)
address - 使用するアドレス、および、トランスポートまたはプロトコルを指定する URI。http:URI が、使用されている SOAP 1.1/HTTP バインディングに帰着する必要がある。実装がその他の URI スキーマをサポートすることも可能であるimplementor - 着信要求のディスパッチ先となるサービス実装オブジェクト。対応しているクラスが、すべての必要な Web サービス注釈で注釈されている必要がある
public abstract EndpointReference readEndpointReference(Source eprInfoset)
eprInfoset に含まれている情報セットから EndpointReference を読み取ります。
eprInfoset から非整列化された EndpointReference。このメソッドが null を返すことはない
WebServiceException - 指定の eprInfoset から EndpointReference を作成するときにエラーが発生した場合
NullPointerException - 指定された eprInfoset の値が null の場合
public abstract <T> T getPort(EndpointReference endpointReference,
Class<T> serviceEndpointInterface,
WebServiceFeature... features)
endpointReference に参照パラメータがある場合は、端点に送信されるすべてのメッセージにそれらの参照パラメータを SOAP ヘッダーとして含め、それらが参照パラメータであることを示す必要があります。パラメータ serviceEndpointInterface は、戻り値のプロキシによってサポートされるサービス端点インタフェースを指定します。パラメータ endpointReference は、戻り値のプロキシによって呼び出される端点を指定します。このメソッドの実装では、serviceEndpointInterface の WSDL メタデータおよび EndpointReference に従って、JAX-WS 実行システムがプロトコルバインディング (およびポート) の選択とプロキシの設定を行います。このメソッドで正常にプロキシを取得するには、WSDL メタデータが利用可能であることと、実装で認識される serviceName メタデータが endpointReference に含まれていることが必要です。
endpointReference - 戻り値のプロキシによって呼び出される EndpointReferenceserviceEndpointInterface - サービス端点インタフェースfeatures - プロキシに設定する WebServiceFeatures のリスト。features パラメータに含まれていないサポートされる機能には、デフォルト値が設定される
WebServiceException - endpointReference が不正である場合serviceEndpointInterface が指定された場合WebServiceFeature
public abstract W3CEndpointReference createW3CEndpointReference(String address,
QName serviceName,
QName portName,
List<Element> metadata,
String wsdlDocumentLocation,
List<Element> referenceParameters)
W3CEndpointReference を作成するファクトリメソッドです。
このメソッドを使用して、address プロパティーと必要なほかのプロパティーを指定することにより、任意の端点の W3CEndpointReference を作成できます。このメソッドを使用して、同じ Java EE アプリケーションによって発行される端点の W3CEndpointReference を作成することもできます。そのためには、address プロパティーを指定することもできますが、そうでない場合このメソッドでは、serviceName および portName プロパティーで識別される同じ Java EE アプリケーションによって発行された端点の address を自動的に判定することができます。address が null の場合に、serviceName と portName で識別される対象が同じ Java EE アプリケーションから発行された端点でないときは、javax.lang.IllegalStateException をスローする必要があります。
address - ターゲット端点のアドレスを指定するserviceName - WSDL 内のサービスの修飾名portName - WSDL 内の端点の修飾名metadata - W3CEndpointReference インスタンスの wsa:metadata 要素に追加する要素のリストwsdlDocumentLocation - サービスの WSDL 文書の位置を示す URLreferenceParameters - 返される EndpointReference インスタンスに関連付けられる参照パラメータ
serviceName、portName、metadata、wsdlDocumentLocation、および referenceParameters から作成された W3CEndpointReference。このメソッドが null を返すことはない
IllegalStateException - address、serviceName、および portName がすべて null の場合serviceName サービスが null で、portName が null でない場合address プロパティーが null の場合に、serviceName と portName で識別される対象が同じ Java EE アプリケーションから発行された有効な端点でないときserviceName が null でなく、指定の WSDL 内に存在しない場合portName ポートが null でなく、WSDL の serviceName サービス内に存在しない場合wsdlDocumentLocation が null でなく、有効な WSDL を表していない場合 WebServiceException - W3CEndpointReference の作成中にエラーが発生した場合
|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
Copyright 2009 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Documentation Redistribution Policy も参照してください。