クラス MarshallingMethodEndpointAdapter
java.lang.ObjectSE
org.springframework.xml.transform.TransformerObjectSupport
org.springframework.ws.server.endpoint.adapter.AbstractMethodEndpointAdapter
org.springframework.ws.server.endpoint.adapter.MarshallingMethodEndpointAdapter
- 実装済みのインターフェース一覧:
org.springframework.beans.factory.InitializingBean,EndpointAdapter
- 既知の直属サブクラス
GenericMarshallingMethodEndpointAdapter
@DeprecatedSE
public class MarshallingMethodEndpointAdapter
extends AbstractMethodEndpointAdapter
implements org.springframework.beans.factory.InitializingBean
使用すべきではありません。
マーシャリングを使用するエンドポイントメソッドをサポートするアダプター。次のシグネチャーを持つメソッドをサポートします。
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 voidinvokeInternal(MessageContext messageContext, MethodEndpoint methodEndpoint) 使用すべきではありません。指定されたメソッドエンドポイントを使用してリクエストを処理します。final voidsetMarshaller(org.springframework.oxm.Marshaller marshaller) 使用すべきではありません。オブジェクトを XML に変換するために使用されるマーシャラーを設定します。final voidsetUnmarshaller(org.springframework.oxm.Unmarshaller unmarshaller) 使用すべきではありません。XML をオブジェクトに変換するために使用されるアンマーシャラーを設定します。protected booleansupportsInternal(MethodEndpoint methodEndpoint) 使用すべきではありません。単一のマーシャリング不可能なパラメーターを持ち、voidまたはマーシャリング可能な型を返すメソッドをサポートします。クラス org.springframework.ws.server.endpoint.adapter.AbstractMethodEndpointAdapter から継承されたメソッド
invoke, supportsクラス org.springframework.xml.transform.TransformerObjectSupport から継承されたメソッド
createTransformer, getTransformerFactory, newTransformerFactory, setTransformerFactoryClass, transform
コンストラクターの詳細
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
使用すべきではありません。- 次で指定:
- インターフェース
org.springframework.beans.factory.InitializingBeanのafterPropertiesSet - 例外:
ExceptionSE
invokeInternal
protected void invokeInternal(MessageContext messageContext, MethodEndpoint methodEndpoint) throws ExceptionSE 使用すべきではありません。クラスからコピーされた説明:AbstractMethodEndpointAdapter指定されたメソッドエンドポイントを使用してリクエストを処理します。- 次で指定:
- クラス
AbstractMethodEndpointAdapterのinvokeInternal - パラメーター:
messageContext- 現在のメッセージコンテキストmethodEndpoint- 使用するメソッドエンドポイント- 例外:
ExceptionSE- エラーの場合
supportsInternal
使用すべきではありません。単一のマーシャリング不可能なパラメーターを持ち、voidまたはマーシャリング可能な型を返すメソッドをサポートします。- 次で指定:
- クラス
AbstractMethodEndpointAdapterのsupportsInternal - パラメーター:
methodEndpoint- チェックするメソッドエンドポイント- 戻り値:
- このアダプターが指定されたメソッドを適合できるかどうか
- 関連事項:
Marshaller.supports(Class)Unmarshaller.supports(Class)
DefaultMethodEndpointAdapterとMarshallingPayloadMethodProcessorが優先されます。