クラス ResponseCreators
java.lang.ObjectSE
org.springframework.ws.test.client.ResponseCreators
ResponseCreator
クラスのファクトリメソッド。通常、ResponseActions.andRespond(ResponseCreator)
の入力を提供するために使用されます。- 導入:
- 2.0
- 作成者:
- Arjen Poutsma
メソッドのサマリー
修飾子と型メソッド説明static ResponseCreator
withClientOrSenderFault
(StringSE faultStringOrReason, LocaleSE locale) Client
(SOAP 1.1)またはSender
(SOAP 1.2)障害で応答します。static ResponseCreator
エラーで応答します。static ResponseCreator
withException
(IOExceptionSE ioException) IOException
SE で応答します。static ResponseCreator
RuntimeException
SE で応答します。static ResponseCreator
withMustUnderstandFault
(StringSE faultStringOrReason, LocaleSE locale) MustUnderstand
障害で応答します。static ResponseCreator
withPayload
(SourceSE payload) ペイロードレスポンスとして、指定されたSource
SE XML でレスポンスします。static ResponseCreator
withPayload
(org.springframework.core.io.Resource payload) ペイロードレスポンスとして、指定されたResource
XML でレスポンスします。static ResponseCreator
withServerOrReceiverFault
(StringSE faultStringOrReason, LocaleSE locale) Server
(SOAP 1.1)またはReceiver
(SOAP 1.2)障害で応答します。static ResponseCreator
withSoapEnvelope
(SourceSE soapEnvelope) 指定されたSource
SE XML を SOAP エンベロープレスポンスとしてレスポンスします。static ResponseCreator
withSoapEnvelope
(org.springframework.core.io.Resource soapEnvelope) 指定されたResource
XML を SOAP エンベロープレスポンスとしてレスポンスします。static ResponseCreator
withVersionMismatchFault
(StringSE faultStringOrReason, LocaleSE locale) VersionMismatch
障害で応答します。
メソッドの詳細
withPayload
ペイロードレスポンスとして、指定されたSource
SE XML でレスポンスします。- パラメーター:
payload
- レスポンスペイロード- 戻り値:
- レスポンスコールバック
withPayload
public static ResponseCreator withPayload(org.springframework.core.io.Resource payload) throws IOExceptionSE ペイロードレスポンスとして、指定されたResource
XML でレスポンスします。- パラメーター:
payload
- レスポンスペイロード- 戻り値:
- レスポンスコールバック
- 例外:
IOExceptionSE
withError
エラーで応答します。- パラメーター:
errorMessage
- エラーメッセージ- 戻り値:
- レスポンスコールバック
- 関連事項:
withException
IOException
SE で応答します。- パラメーター:
ioException
- スローされる例外- 戻り値:
- レスポンスコールバック
withException
RuntimeException
SE で応答します。- パラメーター:
ex
- スローされるランタイム例外- 戻り値:
- レスポンスコールバック
withSoapEnvelope
指定されたSource
SE XML を SOAP エンベロープレスポンスとしてレスポンスします。- パラメーター:
soapEnvelope
- レスポンス SOAP エンベロープ- 戻り値:
- レスポンスコールバック
- 導入:
- 2.1.1
withSoapEnvelope
public static ResponseCreator withSoapEnvelope(org.springframework.core.io.Resource soapEnvelope) throws IOExceptionSE 指定されたResource
XML を SOAP エンベロープレスポンスとしてレスポンスします。- パラメーター:
soapEnvelope
- レスポンス SOAP エンベロープ- 戻り値:
- レスポンスコールバック
- 例外:
IOExceptionSE
- 導入:
- 2.1.1
withMustUnderstandFault
public static ResponseCreator withMustUnderstandFault(StringSE faultStringOrReason, LocaleSE locale) MustUnderstand
障害で応答します。- パラメーター:
faultStringOrReason
- SOAP 1.1 障害文字列または SOAP1.2 理由テキストlocale
- faultStringOrReason の言語。SOAP 1.1 のオプション- 関連事項:
withClientOrSenderFault
public static ResponseCreator withClientOrSenderFault(StringSE faultStringOrReason, LocaleSE locale) Client
(SOAP 1.1)またはSender
(SOAP 1.2)障害で応答します。- パラメーター:
faultStringOrReason
- SOAP 1.1 障害文字列または SOAP1.2 理由テキストlocale
- faultStringOrReason の言語。SOAP 1.1 のオプション- 関連事項:
withServerOrReceiverFault
public static ResponseCreator withServerOrReceiverFault(StringSE faultStringOrReason, LocaleSE locale) Server
(SOAP 1.1)またはReceiver
(SOAP 1.2)障害で応答します。- パラメーター:
faultStringOrReason
- SOAP 1.1 障害文字列または SOAP1.2 理由テキストlocale
- faultStringOrReason の言語。SOAP 1.1 のオプション- 関連事項:
withVersionMismatchFault
public static ResponseCreator withVersionMismatchFault(StringSE faultStringOrReason, LocaleSE locale) VersionMismatch
障害で応答します。- パラメーター:
faultStringOrReason
- SOAP 1.1 障害文字列または SOAP1.2 理由テキストlocale
- faultStringOrReason の言語。SOAP 1.1 のオプション- 関連事項: