クラス ResponseCreators
java.lang.ObjectSE
org.springframework.ws.test.client.ResponseCreators
ResponseCreator クラスのファクトリメソッド。通常、ResponseActions.andRespond(ResponseCreator) の入力を提供するために使用されます。- 導入:
- 2.0
- 作成者:
- Arjen Poutsma
方法の概要
修飾子と型メソッド説明static ResponseCreatorwithClientOrSenderFault(StringSE faultStringOrReason, LocaleSE locale) Client(SOAP 1.1)またはSender(SOAP 1.2)障害で応答します。static ResponseCreatorエラーで応答します。static ResponseCreatorwithException(IOExceptionSE ioException) IOExceptionSE で応答します。static ResponseCreatorRuntimeExceptionSE で応答します。static ResponseCreatorwithMustUnderstandFault(StringSE faultStringOrReason, LocaleSE locale) MustUnderstand障害で応答します。static ResponseCreatorwithPayload(SourceSE payload) ペイロードレスポンスとして、指定されたSourceSE XML でレスポンスします。static ResponseCreatorwithPayload(org.springframework.core.io.Resource payload) ペイロードレスポンスとして、指定されたResourceXML でレスポンスします。static ResponseCreatorwithServerOrReceiverFault(StringSE faultStringOrReason, LocaleSE locale) Server(SOAP 1.1)またはReceiver(SOAP 1.2)障害で応答します。static ResponseCreatorwithSoapEnvelope(SourceSE soapEnvelope) 指定されたSourceSE XML を SOAP エンベロープレスポンスとしてレスポンスします。static ResponseCreatorwithSoapEnvelope(org.springframework.core.io.Resource soapEnvelope) 指定されたResourceXML を SOAP エンベロープレスポンスとしてレスポンスします。static ResponseCreatorwithVersionMismatchFault(StringSE faultStringOrReason, LocaleSE locale) VersionMismatch障害で応答します。
メソッドの詳細
withPayload
ペイロードレスポンスとして、指定されたSourceSE XML でレスポンスします。- パラメーター:
payload- レスポンスペイロード- 戻り値:
- レスポンスコールバック
withPayload
public static ResponseCreator withPayload(org.springframework.core.io.Resource payload) throws IOExceptionSE ペイロードレスポンスとして、指定されたResourceXML でレスポンスします。- パラメーター:
payload- レスポンスペイロード- 戻り値:
- レスポンスコールバック
- 例外:
IOExceptionSE
withError
エラーで応答します。- パラメーター:
errorMessage- エラーメッセージ- 戻り値:
- レスポンスコールバック
- 関連事項:
withException
IOExceptionSE で応答します。- パラメーター:
ioException- スローされる例外- 戻り値:
- レスポンスコールバック
withException
RuntimeExceptionSE で応答します。- パラメーター:
ex- スローされるランタイム例外- 戻り値:
- レスポンスコールバック
withSoapEnvelope
指定されたSourceSE XML を SOAP エンベロープレスポンスとしてレスポンスします。- パラメーター:
soapEnvelope- レスポンス SOAP エンベロープ- 戻り値:
- レスポンスコールバック
- 導入:
- 2.1.1
withSoapEnvelope
public static ResponseCreator withSoapEnvelope(org.springframework.core.io.Resource soapEnvelope) throws IOExceptionSE 指定されたResourceXML を 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 のオプション- 関連事項: