クラス MarshallingMethodEndpointAdapter

実装されたすべてのインターフェース:
org.springframework.beans.factory.InitializingBeanEndpointAdapter
既知の直属サブクラス
GenericMarshallingMethodEndpointAdapter

@DeprecatedSE public class MarshallingMethodEndpointAdapter extends AbstractMethodEndpointAdapter implements org.springframework.beans.factory.InitializingBean
使用すべきではありません。
Spring Web Services 2.0 の時点で、DefaultMethodEndpointAdapterMarshallingPayloadMethodProcessor が優先されます。
マーシャリングを使用するエンドポイントメソッドをサポートするアダプター。次のシグネチャーを持つメソッドをサポートします。
 void handleMyMessage(MyUnmarshalledType request);
 
または
 MyMarshalledType handleMyMessage(MyUnmarshalledType request);
 
I.e。Unmarshaller によって is supported という単一のパラメーターを受け取り、void または Marshaller によって型 supported のいずれかを返すメソッド。メソッドは、EndpointMapping によってマップされている限り、任意の名前を付けることができます。

このエンドポイントには Marshaller と Unmarshaller が必要であり、どちらもプロパティを使用して設定できます。

導入:
1.0.0
作成者:
Arjen Poutsma
関連事項:
  • フィールドサマリー

    クラス org.springframework.xml.transform.TransformerObjectSupport から継承されたフィールド

    logger
  • コンストラクターのサマリー

    コンストラクター
    コンストラクター
    説明
    使用すべきではありません。
    新しい MarshallingMethodEndpointAdapter を作成します。
    MarshallingMethodEndpointAdapter(org.springframework.oxm.Marshaller marshaller)
    使用すべきではありません。
    指定されたマーシャラーで新しい MarshallingMethodEndpointAdapter を作成します。
    MarshallingMethodEndpointAdapter(org.springframework.oxm.Marshaller marshaller, org.springframework.oxm.Unmarshaller unmarshaller)
    使用すべきではありません。
    指定されたマーシャラーとアンマーシャラーを使用して新しい MarshallingMethodEndpointAdapter を作成します。
  • メソッドのサマリー

    修飾子と型
    メソッド
    説明
    void
    使用すべきではありません。
    org.springframework.oxm.Marshaller
    使用すべきではありません。
    オブジェクトを XML に変換するために使用されるマーシャラーを返します。
    org.springframework.oxm.Unmarshaller
    使用すべきではありません。
    XML をオブジェクトに変換するために使用されるアンマーシャラーを返します。
    protected void
    invokeInternal(MessageContext messageContext, MethodEndpoint methodEndpoint)
    使用すべきではありません。
    指定されたメソッドエンドポイントを使用してリクエストを処理します。
    final void
    setMarshaller(org.springframework.oxm.Marshaller marshaller)
    使用すべきではありません。
    オブジェクトを XML に変換するために使用されるマーシャラーを設定します。
    final void
    setUnmarshaller(org.springframework.oxm.Unmarshaller unmarshaller)
    使用すべきではありません。
    XML をオブジェクトに変換するために使用されるアンマーシャラーを設定します。
    protected boolean
    使用すべきではありません。
    単一のマーシャリング不可能なパラメーターを持ち、void またはマーシャリング可能な型を返すメソッドをサポートします。

    クラス org.springframework.ws.server.endpoint.adapter.AbstractMethodEndpointAdapter から継承されたメソッド

    invoke, supports

    クラス org.springframework.xml.transform.TransformerObjectSupport から継承されたメソッド

    createTransformer, getTransformerFactory, newTransformerFactory, setTransformerFactoryClass, transform

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

    clone, equalsSE, finalize, getClass, hashCode, notify, notifyAll, toString, wait, waitSE, waitSE
  • コンストラクターの詳細

    • MarshallingMethodEndpointAdapter

      public MarshallingMethodEndpointAdapter()
      使用すべきではありません。
      新しい MarshallingMethodEndpointAdapter を作成します。Marshaller および Unmarshaller は、プロパティを使用して注入する必要があります。
      関連事項:
    • MarshallingMethodEndpointAdapter

      public MarshallingMethodEndpointAdapter(org.springframework.oxm.Marshaller marshaller)
      使用すべきではありません。
      指定されたマーシャラーで新しい MarshallingMethodEndpointAdapter を作成します。指定された Marshaller が Unmarshaller インターフェースも実装している場合、マーシャリングとアンマーシャリングの両方に使用されます。それ以外の場合は、例外がスローされます。

      Spring のすべての Marshaller 実装も Unmarshaller インターフェースを実装するため、このコンストラクターを安全に使用できることに注意してください。

      パラメーター:
      marshaller - マーシャラーおよびアンマーシャラーとして使用されるオブジェクト
      例外:
      IllegalArgumentExceptionSE - marshaller が Unmarshaller インターフェースを実装していない場合
    • MarshallingMethodEndpointAdapter

      public MarshallingMethodEndpointAdapter(org.springframework.oxm.Marshaller marshaller, org.springframework.oxm.Unmarshaller unmarshaller)
      使用すべきではありません。
      指定されたマーシャラーとアンマーシャラーを使用して新しい MarshallingMethodEndpointAdapter を作成します。
      パラメーター:
      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
    • invokeInternal

      protected void invokeInternal(MessageContext messageContext, MethodEndpoint methodEndpoint) throws ExceptionSE
      使用すべきではありません。
      クラスからコピーされた説明: AbstractMethodEndpointAdapter
      指定されたメソッドエンドポイントを使用してリクエストを処理します。
      次で指定:
      クラス AbstractMethodEndpointAdapterinvokeInternal 
      パラメーター:
      messageContext - 現在のメッセージコンテキスト
      methodEndpoint - 使用するメソッドエンドポイント
      例外:
      ExceptionSE - エラーの場合
    • supportsInternal

      protected boolean supportsInternal(MethodEndpoint methodEndpoint)
      使用すべきではありません。
      単一のマーシャリング不可能なパラメーターを持ち、void またはマーシャリング可能な型を返すメソッドをサポートします。
      次で指定:
      クラス AbstractMethodEndpointAdaptersupportsInternal 
      パラメーター:
      methodEndpoint - チェックするメソッドエンドポイント
      戻り値:
      このアダプターが指定されたメソッドを適合できるかどうか
      関連事項:
      • Marshaller.supports(Class)
      • Unmarshaller.supports(Class)