クラス ResponseCreators

java.lang.ObjectSE
org.springframework.ws.test.client.ResponseCreators

public abstract class ResponseCreators extends ObjectSE
ResponseCreator クラスのファクトリメソッド。通常、ResponseActions.andRespond(ResponseCreator) の入力を提供するために使用されます。
導入:
2.0
作成者:
Arjen Poutsma
  • メソッドの詳細

    • withPayload

      public static ResponseCreator withPayload(SourceSE payload)
      ペイロードレスポンスとして、指定された SourceSE XML でレスポンスします。
      パラメーター:
      payload - レスポンスペイロード
      戻り値:
      レスポンスコールバック
    • withPayload

      public static ResponseCreator withPayload(org.springframework.core.io.Resource payload) throws IOExceptionSE
      ペイロードレスポンスとして、指定された Resource XML でレスポンスします。
      パラメーター:
      payload - レスポンスペイロード
      戻り値:
      レスポンスコールバック
      例外:
      IOExceptionSE
    • withError

      public static ResponseCreator withError(StringSE errorMessage)
      エラーで応答します。
      パラメーター:
      errorMessage - エラーメッセージ
      戻り値:
      レスポンスコールバック
      関連事項:
    • withException

      public static ResponseCreator withException(IOExceptionSE ioException)
      IOExceptionSE で応答します。
      パラメーター:
      ioException - スローされる例外
      戻り値:
      レスポンスコールバック
    • withException

      public static ResponseCreator withException(RuntimeExceptionSE ex)
      RuntimeExceptionSE で応答します。
      パラメーター:
      ex - スローされるランタイム例外
      戻り値:
      レスポンスコールバック
    • withSoapEnvelope

      public static ResponseCreator withSoapEnvelope(SourceSE soapEnvelope)
      指定された SourceSE 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 のオプション
      関連事項: