クラス AbstractAddressingEndpointMapping

java.lang.ObjectSE
org.springframework.xml.transform.TransformerObjectSupport
org.springframework.ws.soap.addressing.server.AbstractAddressingEndpointMapping
実装済みのインターフェース一覧:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware, org.springframework.core.Ordered, EndpointMapping, SoapEndpointMapping
既知の直属サブクラス
AbstractActionEndpointMapping

public abstract class AbstractAddressingEndpointMapping extends TransformerObjectSupport implements SoapEndpointMapping, org.springframework.context.ApplicationContextAware, org.springframework.beans.factory.InitializingBean, org.springframework.core.Ordered
WS-Addressing を処理する EndpointMapping 実装の抽象基本クラス。通常の SoapEndpointMapping プロパティに加えて、このマッピングには versions プロパティがあり、サポートされる WS-Addressing 仕様を定義します。デフォルトでは、これらは Addressing200408Addressing10 です。

messageIdStrategy プロパティは、応答 MessageIDs の作成に使用する戦略を定義します。デフォルトでは、これは UuidMessageIdStrategy です。

messageSenders は、帯域外応答メッセージを送信するために使用されます。リクエストメッセージで匿名でない応答アドレスが定義されている場合、これらの送信元を使用してメッセージが送信されます。各送信元の WebServiceMessageSender.supports(java.net.URI, UriSource)WebServiceMessageSender.UriSource.REMOTE によって、クライアントから提供された wsa:ReplyTo / wsa:FaultTo URI がそのトランスポートで受け入れられるかどうかが決定されます。

This mapping (and all subclasses) uses an implicit WS-Addressing EndpointInterceptor, which is added in every EndpointInvocationChain produced. As such, this mapping does not have the standard interceptors property, but rather a preInterceptors property and a postInterceptors property.

Pre-interceptors always run first in the order they have been configured. All other interceptors — the implicit WS-Addressing interceptor, any auto-discovered SmartEndpointInterceptors, and post-interceptors — are sorted together using OrderComparator. The implicit WS-Addressing interceptor has a fixed order of 0; unordered interceptors default to Integer.MAX_VALUESE so they run last.

導入:
1.5.0
  • コンストラクターの詳細

    • AbstractAddressingEndpointMapping

      protected AbstractAddressingEndpointMapping()
      デフォルトの戦略、つまり仕様の Addressing200408 および Addressing10 バージョンと UuidMessageIdStrategy を使用して新しいインスタンスを作成します。
  • 方法の詳細

    • setActorOrRole

      public final void setActorOrRole(StringSE actorOrRole)
      インターフェースからコピーされた説明: SoapEndpointMapping
      デリゲートエンドポイントマッピングによってマップされたすべてのエンドポイントに適用する単一の SOAP アクター / actorOrRole を設定します。
      次で指定:
      インターフェース SoapEndpointMapping 内の setActorOrRole 
    • setActorsOrRoles

      public final void setActorsOrRoles(StringSE[] actorsOrRoles)
      インターフェースからコピーされた説明: SoapEndpointMapping
      デリゲートエンドポイントマッピングによってマップされたすべてのエンドポイントに適用する SOAP アクター / actorsOrRoles の配列を設定します。
      次で指定:
      インターフェース SoapEndpointMapping 内の setActorsOrRoles 
    • setUltimateReceiver

      public final void setUltimateReceiver(boolean ultimateReceiver)
      インターフェースからコピーされた説明: SoapEndpointMapping
      このエンドポイントが SOAP 1.2 UltimateReceiver のロールを果たしているかどうかを示します。
      次で指定:
      インターフェース SoapEndpointMapping 内の setUltimateReceiver 
    • getApplicationContext

      public org.springframework.context.ApplicationContext getApplicationContext()
    • setApplicationContext

      public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
      次で指定:
      インターフェース org.springframework.context.ApplicationContextAware 内の setApplicationContext 
      例外:
      org.springframework.beans.BeansException
    • getOrder

      public final int getOrder()
      次で指定:
      インターフェース org.springframework.core.Ordered 内の getOrder 
    • setOrder

      public final void setOrder(int order)
      このマッピングのオーダー値を指定します。

      デフォルト値は Integer.MAX_VALUESE です。これは、順序付けされていないことを意味します。

      関連事項:
      • Ordered.getOrder()
    • setPreInterceptors

      public final void setPreInterceptors(EndpointInterceptor[] preInterceptors)
      Set the interceptors to be applied first, in the order they have been defined.
      パラメーター:
      preInterceptors - the interceptors to apply first, in that order
    • setPostInterceptors

      public final void setPostInterceptors(EndpointInterceptor[] postInterceptors)
      Set additional interceptors to apply alongside the implicit WS-Addressing interceptor.

      Interceptors are sorted together with any auto-discovered SmartEndpointInterceptors and the implicit WS-Addressing interceptor (order 0) using OrderComparator. By default, interceptors without an explicit order are placed at the end, and therefore after the WS-Addressing interceptor. Implement Ordered to customize the position.

      パラメーター:
      postInterceptors - additional interceptors to apply alongside the implicit WS-Addressing interceptor
    • setMessageIdStrategy

      public final void setMessageIdStrategy(MessageIdStrategy messageIdStrategy)
      WS-Addressing MessageIds の作成に使用されるメッセージ ID 戦略を設定します。

      デフォルトでは、UuidMessageIdStrategy が使用されます。

    • getMessageIdStrategy

      public MessageIdStrategy getMessageIdStrategy()
      WS-Addressing MessageIds の作成に使用されるメッセージ ID 戦略を返します。
    • setMessageSender

      public final void setMessageSender(WebServiceMessageSender messageSender)
      帯域外応答メッセージの送信に使用される単一のメッセージ送信者を設定します。リクエストメッセージが匿名でない応答アドレスを定義している場合、この送信者はメッセージの送信に使用されます。
      パラメーター:
      messageSender - メッセージの送信者
    • setMessageSenders

      public final void setMessageSenders(WebServiceMessageSender[] messageSenders)
      帯域外応答メッセージの送信に使用されるメッセージ送信者を設定します。リクエストメッセージが匿名でない応答アドレスを定義している場合、これらの送信者はメッセージの送信に使用されます。
      パラメーター:
      messageSenders - メッセージの送信者
    • getMessageSenders

      public final WebServiceMessageSender[] getMessageSenders()
      帯域外応答メッセージの送信に使用されるメッセージ送信者を返します。
      戻り値:
      メッセージの送信者
    • setVersions

      public final void setVersions(AddressingVersion[] versions)
      このマッピングでサポートされる WS-Addressing バージョンを設定します。

      デフォルトでは、この配列は仕様の the August 2004 および May 2006 バージョンをサポートするように設定されています。

    • afterPropertiesSet

      public void afterPropertiesSet() throws ExceptionSE
      次で指定:
      インターフェース org.springframework.beans.factory.InitializingBean 内の afterPropertiesSet 
      例外:
      ExceptionSE
    • getEndpoint

      public final @Nullable EndpointInvocationChain getEndpoint(MessageContext messageContext) throws TransformerExceptionSE
      インターフェースからコピーされた説明: EndpointMapping
      このメッセージコンテキストのエンドポイントとインターセプターを返します。選択は、メッセージの内容、トランスポートリクエストの URL、ルーティングテーブル、実装クラスが選択する任意の要素で行うことができます。

      返される EndpointExecutionChain には、タグインターフェースではなく、エンドポイントオブジェクトが含まれているため、エンドポイントはいかなる方法でも制約されません。例: EndpointAdapter は、別のフレームワークのエンドポイントオブジェクトを使用できるように作成できます。

      一致するものが見つからなかった場合は null を返します。これは仕様によるものです。MessageDispatcher は、登録されているすべての EndpointMapping Bean にクエリを実行して一致するものを見つけ、エンドポイントが見つからない場合にのみエラーがあると判断します。

      次で指定:
      インターフェース EndpointMapping 内の getEndpoint 
      戻り値:
      エンドポイントオブジェクトとインターセプターを含む HandlerExecutionChain インスタンス、またはマッピングが見つからない場合は null 
      例外:
      TransformerExceptionSE
    • buildInterceptors

      protected EndpointInterceptor[] buildInterceptors(ObjectSE endpoint, MessageContext messageContext, EndpointInterceptor addressingInterceptor)
      Build the list of EndpointInterceptors for the given endpoint and message context. Only add SmartEndpointInterceptor that should be intercepted
      パラメーター:
      endpoint - エンドポイント
      messageContext - 現在のメッセージコンテキスト
      addressingInterceptor - the implicit WS-Addressing interceptor
      戻り値:
      使用する迎撃機
      導入:
      3.1.9
    • getMessageSenders

      protected WebServiceMessageSender[] getMessageSenders(ObjectSE endpoint)
      指定されたエンドポイントのメッセージ送信者を返します。デフォルトの実装は getMessageSenders() を返します
      パラメーター:
      endpoint - エンドポイント
      戻り値:
      特定のエンドポイントのメッセージ送信者
    • getMessageIdStrategy

      protected MessageIdStrategy getMessageIdStrategy(ObjectSE endpoint)
      指定されたエンドポイントのメッセージ ID 戦略を返します。デフォルトの実装は getMessageIdStrategy() を返します
      パラメーター:
      endpoint - エンドポイント
      戻り値:
      特定のエンドポイントのメッセージ ID 戦略
    • getEndpointInternal

      protected abstract @Nullable ObjectSE getEndpointInternal(MessageAddressingProperties map)
      指定された MessageAddressingProperties のエンドポイントを検索し、特定のエンドポイントが見つからない場合は null を返します。このテンプレートメソッドは getEndpoint(MessageContext) によって呼び出されます。
      パラメーター:
      map - メッセージアドレス指定プロパティ
      戻り値:
      エンドポイント、または null
    • getResponseAction

      protected abstract @Nullable URISE getResponseAction(ObjectSE endpoint, MessageAddressingProperties requestMap)
      エンドポイントを指定して、レスポンスメッセージの WS-Addressing アクションを提供し、メッセージアドレス指定プロパティをリクエストします。
      パラメーター:
      endpoint - マップされたエンドポイント
      requestMap - リクエストの MAP
      戻り値:
      レスポンスアクション
    • getFaultAction

      protected abstract @Nullable URISE getFaultAction(ObjectSE endpoint, MessageAddressingProperties requestMap)
      エンドポイントを指定して、レスポンス障害メッセージの WS-Addressing アクションを提供し、メッセージアドレス指定プロパティをリクエストします。
      パラメーター:
      endpoint - マップされたエンドポイント
      requestMap - リクエストの MAP
      戻り値:
      レスポンスアクション