クラス AbstractMarshallingPayloadEndpoint

java.lang.ObjectSE
org.springframework.ws.server.endpoint.AbstractMarshallingPayloadEndpoint
実装されたすべてのインターフェース:
org.springframework.beans.factory.InitializingBeanMessageEndpoint
既知の直属サブクラス
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 final org.apache.commons.logging.Log
    使用すべきではありません。
    サブクラスで利用可能なロガー。
  • コンストラクターのサマリー

    コンストラクター
    修飾子
    コンストラクター
    説明
    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 をオブジェクトに変換するために使用されるアンマーシャラーを設定します。

    クラス java.lang.ObjectSE から継承されたメソッド

    clone, equalsSE, finalize, getClass, hashCode, notify, notifyAll, toString, wait, waitSE, waitSE
  • フィールドの詳細

    • 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

      public void afterPropertiesSet() throws ExceptionSE
      使用すべきではありません。
      次で指定:
      インターフェース org.springframework.beans.factory.InitializingBeanafterPropertiesSet 
      例外:
      ExceptionSE
    • invoke

      public final void invoke(MessageContext messageContext) throws ExceptionSE
      使用すべきではありません。
      インターフェースからコピーされた説明: MessageEndpoint
      操作を呼び出します。

      指定された messageContext を使用してレスポンスを作成できます。

      次で指定:
      インターフェース MessageEndpointinvoke 
      パラメーター:
      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

      @DeprecatedSE public void afterMarshallerSet() throws ExceptionSE
      使用すべきではありません。
      Spring Web Services 1.5 の時点: afterPropertiesSet() は最終版ではなくなったため、サブクラスで安全にオーバーライドできます。
      マーシャラーとアンマーシャラーが設定された後に呼び出されるテンプレートメソッド。

      デフォルトの実装では何も行われません。

      例外:
      ExceptionSE
    • invokeInternal

      protected abstract ObjectSE invokeInternal(ObjectSE requestObject) throws ExceptionSE
      使用すべきではありません。
      サブクラスがリクエストを処理するために実装する必要があるテンプレートメソッド。

      マーシャリングされていないリクエストオブジェクトはパラメーターとして渡され、返されたオブジェクトはレスポンスにマーシャリングされます。レスポンスが不要な場合は、null を返します。

      パラメーター:
      requestObject - オブジェクトとしてのマーシャリングされていないメッセージペイロード
      戻り値:
      レスポンスとしてマーシャリングされるオブジェクト、またはレスポンスが不要な場合は null 
      例外:
      ExceptionSE