クラス AbstractMarshallingPayloadEndpoint
java.lang.ObjectSE
org.springframework.ws.server.endpoint.AbstractMarshallingPayloadEndpoint
- 実装されたすべてのインターフェース:
org.springframework.beans.factory.InitializingBean
,MessageEndpoint
- 既知の直属サブクラス
AbstractValidatingMarshallingPayloadEndpoint
@DeprecatedSE
public abstract class AbstractMarshallingPayloadEndpoint
extends ObjectSE
implements MessageEndpoint, org.springframework.beans.factory.InitializingBean
使用すべきではありません。
Spring Web Services 2.0 の時点で、アノテーション付きエンドポイントを優先
リクエストペイロードをアンマーシャリングし、レスポンスオブジェクトをマーシャリングするエンドポイント。このエンドポイントには
Marshaller
と Unmarshaller
が必要であり、どちらもプロパティを使用して設定できます。抽象テンプレートメソッドは、リクエストオブジェクトをパラメーターとして使用して呼び出され、レスポンスオブジェクトを返すことができます。- 導入:
- 1.0.0
- 作成者:
- Arjen Poutsma
- 関連事項:
フィールドのサマリー
フィールドコンストラクターの概要
コンストラクター修飾子コンストラクター説明protected
使用すべきではありません。新しいAbstractMarshallingPayloadEndpoint
を作成します。protected
AbstractMarshallingPayloadEndpoint
(org.springframework.oxm.Marshaller marshaller) 使用すべきではありません。指定されたマーシャラーで新しいAbstractMarshallingPayloadEndpoint
を作成します。protected
AbstractMarshallingPayloadEndpoint
(org.springframework.oxm.Marshaller marshaller, org.springframework.oxm.Unmarshaller unmarshaller) 使用すべきではありません。指定されたマーシャラーとアンマーシャラーを使用して新しいAbstractMarshallingPayloadEndpoint
を作成します。メソッドのサマリー
修飾子と型メソッド説明void
使用すべきではありません。Spring Web Services 1.5 の時点:afterPropertiesSet()
は最終版ではなくなったため、サブクラスで安全にオーバーライドできます。void
使用すべきではありません。org.springframework.oxm.Marshaller
使用すべきではありません。オブジェクトを XML に変換するために使用されるマーシャラーを返します。org.springframework.oxm.Unmarshaller
使用すべきではありません。XML をオブジェクトに変換するために使用されるアンマーシャラーを返します。final void
invoke
(MessageContext messageContext) 使用すべきではありません。操作を呼び出します。protected abstract ObjectSE
invokeInternal
(ObjectSE requestObject) 使用すべきではありません。サブクラスがリクエストを処理するために実装する必要があるテンプレートメソッド。protected void
onMarshalResponse
(MessageContext messageContext, ObjectSE requestObject, ObjectSE responseObject) 使用すべきではありません。マーシャリングに関する後処理のコールバック。protected boolean
onUnmarshalRequest
(MessageContext messageContext, ObjectSE requestObject) 使用すべきではありません。マーシャリング解除に関する後処理のコールバック。final void
setMarshaller
(org.springframework.oxm.Marshaller marshaller) 使用すべきではありません。オブジェクトを XML に変換するために使用されるマーシャラーを設定します。final void
setUnmarshaller
(org.springframework.oxm.Unmarshaller unmarshaller) 使用すべきではありません。XML をオブジェクトに変換するために使用されるアンマーシャラーを設定します。
フィールドの詳細
logger
protected final org.apache.commons.logging.Log logger使用すべきではありません。サブクラスで利用可能なロガー。
コンストラクターの詳細
AbstractMarshallingPayloadEndpoint
protected AbstractMarshallingPayloadEndpoint()使用すべきではありません。新しいAbstractMarshallingPayloadEndpoint
を作成します。Marshaller
およびUnmarshaller
は、プロパティを使用して注入する必要があります。AbstractMarshallingPayloadEndpoint
protected AbstractMarshallingPayloadEndpoint(org.springframework.oxm.Marshaller marshaller) 使用すべきではありません。指定されたマーシャラーで新しいAbstractMarshallingPayloadEndpoint
を作成します。指定されたMarshaller
は、マーシャリングとアンマーシャリングの両方に使用されるため、Unmarshaller
も実装する必要があります。そうでない場合は、例外がスローされます。Spring-WS のすべての
Marshaller
実装はUnmarshaller
インターフェースも実装しているため、このコンストラクターを安全に使用できることに注意してください。- パラメーター:
marshaller
- マーシャラーおよびアンマーシャラーとして使用されるオブジェクト- 例外:
IllegalArgumentExceptionSE
-marshaller
がUnmarshaller
インターフェースを実装していない場合- 関連事項:
AbstractMarshallingPayloadEndpoint
protected AbstractMarshallingPayloadEndpoint(org.springframework.oxm.Marshaller marshaller, org.springframework.oxm.Unmarshaller unmarshaller) 使用すべきではありません。指定されたマーシャラーとアンマーシャラーを使用して新しいAbstractMarshallingPayloadEndpoint
を作成します。- パラメーター:
marshaller
- 使用するマーシャラーunmarshaller
- 使用するアンマーシャラー
メソッドの詳細
getMarshaller
public org.springframework.oxm.Marshaller getMarshaller()使用すべきではありません。オブジェクトを XML に変換するために使用されるマーシャラーを返します。setMarshaller
public final void setMarshaller(org.springframework.oxm.Marshaller marshaller) 使用すべきではありません。オブジェクトを XML に変換するために使用されるマーシャラーを設定します。getUnmarshaller
public org.springframework.oxm.Unmarshaller getUnmarshaller()使用すべきではありません。XML をオブジェクトに変換するために使用されるアンマーシャラーを返します。setUnmarshaller
public final void setUnmarshaller(org.springframework.oxm.Unmarshaller unmarshaller) 使用すべきではありません。XML をオブジェクトに変換するために使用されるアンマーシャラーを設定します。afterPropertiesSet
使用すべきではありません。- 次で指定:
- インターフェース
org.springframework.beans.factory.InitializingBean
のafterPropertiesSet
- 例外:
ExceptionSE
invoke
使用すべきではありません。インターフェースからコピーされた説明:MessageEndpoint
操作を呼び出します。指定された
messageContext
を使用してレスポンスを作成できます。- 次で指定:
- インターフェース
MessageEndpoint
のinvoke
- パラメーター:
messageContext
- メッセージコンテキスト- 例外:
ExceptionSE
- 例外が発生した場合
onUnmarshalRequest
protected boolean onUnmarshalRequest(MessageContext messageContext, ObjectSE requestObject) throws ExceptionSE 使用すべきではありません。マーシャリング解除に関する後処理のコールバック。標準のマーシャリング解除後、各メッセージリクエストで呼び出されます。デフォルトの実装は
true
を返します。- パラメーター:
messageContext
- メッセージコンテキストrequestObject
-request
からマーシャリングされていないオブジェクト- 戻り値:
true
を続行し、invokeInternal(Object)
を呼び出します。それ以外の場合はfalse
- 例外:
ExceptionSE
onMarshalResponse
protected void onMarshalResponse(MessageContext messageContext, ObjectSE requestObject, ObjectSE responseObject) 使用すべきではありません。マーシャリングに関する後処理のコールバック。レスポンスの標準的なマーシャリングの後、各メッセージリクエストで呼び出されます。invokeInternal(Object)
がオブジェクトを返す場合にのみ呼び出されます。デフォルトの実装は空です。
- パラメーター:
messageContext
- メッセージコンテキストrequestObject
-request
からマーシャリングされていないオブジェクトresponseObject
-MessageContext.getResponse()
リクエストにマーシャリングされたオブジェクト }
afterMarshallerSet
使用すべきではありません。Spring Web Services 1.5 の時点:afterPropertiesSet()
は最終版ではなくなったため、サブクラスで安全にオーバーライドできます。マーシャラーとアンマーシャラーが設定された後に呼び出されるテンプレートメソッド。デフォルトの実装では何も行われません。
- 例外:
ExceptionSE
invokeInternal
使用すべきではありません。サブクラスがリクエストを処理するために実装する必要があるテンプレートメソッド。マーシャリングされていないリクエストオブジェクトはパラメーターとして渡され、返されたオブジェクトはレスポンスにマーシャリングされます。レスポンスが不要な場合は、
null
を返します。- パラメーター:
requestObject
- オブジェクトとしてのマーシャリングされていないメッセージペイロード- 戻り値:
- レスポンスとしてマーシャリングされるオブジェクト、またはレスポンスが不要な場合は
null
- 例外:
ExceptionSE