クラス MarshallingUtils
java.lang.ObjectSE
org.springframework.ws.support.MarshallingUtils
マーシャリングを使用するエンドポイントおよびエンドポイントマッピングのヘルパークラス。
- 導入:
- 1.0.0
- 作成者:
- Arjen Poutsma
方法の概要
修飾子と型メソッド説明static voidmarshal(org.springframework.oxm.Marshaller marshaller, ObjectSE graph, WebServiceMessage message) 指定されたMarshallerを使用して、指定されたオブジェクトを指定されたメッセージのペイロードにマーシャリングします。static ObjectSEunmarshal(org.springframework.oxm.Unmarshaller unmarshaller, WebServiceMessage message) 提供されたUnmarshallerを使用して、指定されたメッセージのペイロードをアンマーシャリングします。
メソッドの詳細
unmarshal
public static ObjectSE unmarshal(org.springframework.oxm.Unmarshaller unmarshaller, WebServiceMessage message) throws IOExceptionSE 提供されたUnmarshallerを使用して、指定されたメッセージのペイロードをアンマーシャリングします。リクエストメッセージにペイロードがない場合(つまり、
WebServiceMessage.getPayloadSource()がnullを返す場合)、このメソッドはnullを返します。- パラメーター:
unmarshaller- アンマーシャラーmessage- ペイロードがマーシャリングされないメッセージ- 戻り値:
- 非整列化オブジェクト
- 例外:
IOExceptionSE- I/O エラーの場合
marshal
public static void marshal(org.springframework.oxm.Marshaller marshaller, ObjectSE graph, WebServiceMessage message) throws IOExceptionSE 指定されたMarshallerを使用して、指定されたオブジェクトを指定されたメッセージのペイロードにマーシャリングします。- パラメーター:
marshaller- マーシャラーgraph- マーシャリングするオブジェクトグラフのルートmessage- ペイロードがマーシャリングされないメッセージ- 例外:
IOExceptionSE- I/O エラーの場合