クラス XsdSchemaHandlerAdapter

実装されたすべてのインターフェース:
org.springframework.beans.factory.InitializingBeanorg.springframework.web.servlet.HandlerAdapter

public class XsdSchemaHandlerAdapter extends LocationTransformerObjectSupport implements org.springframework.web.servlet.HandlerAdapter, org.springframework.beans.factory.InitializingBean
汎用 DispatcherServletXsdSchema インターフェースを使用するためのアダプター。

マップされた XsdSchema 実装からソースを読み取り、その結果として HttpServletResponse に書き込みます。サブクラスでスキーマを後処理できます。

導入:
1.5.3
作成者:
Arjen Poutsma
関連事項:
  • フィールドの詳細

    • DEFAULT_SCHEMA_LOCATION_EXPRESSION

      public static final StringSE DEFAULT_SCHEMA_LOCATION_EXPRESSION
      WSDL 定義からすべての schemaLocation 属性を抽出するために使用されるデフォルトの XPath 式。
      関連事項:
  • コンストラクターの詳細

    • XsdSchemaHandlerAdapter

      public XsdSchemaHandlerAdapter()
  • メソッドの詳細

    • setSchemaLocationExpression

      public void setSchemaLocationExpression(StringSE schemaLocationExpression)
      WSDL 1.1 定義から schemaLocation 属性を抽出するために使用される XPath 式を設定します。

      デフォルトは DEFAULT_SCHEMA_LOCATION_EXPRESSION です。

    • setTransformSchemaLocations

      public void setTransformSchemaLocations(boolean transformSchemaLocations)
      受信 HttpServletRequest のリクエスト URI を使用して WSDL 内の相対アドレススキーマの場所を変換するかどうかを設定します。デフォルトは false です。
    • getLastModified

      public long getLastModified(jakarta.servlet.http.HttpServletRequest request, ObjectSE handler)
      次で指定:
      インターフェース org.springframework.web.servlet.HandlerAdaptergetLastModified 
    • handle

      public org.springframework.web.servlet.ModelAndView handle(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, ObjectSE handler) throws ExceptionSE
      次で指定:
      インターフェース org.springframework.web.servlet.HandlerAdapterhandle 
      例外:
      ExceptionSE
    • supports

      public boolean supports(ObjectSE handler)
      次で指定:
      インターフェース org.springframework.web.servlet.HandlerAdaptersupports 
    • afterPropertiesSet

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

      protected SourceSE getSchemaSource(XsdSchema schema) throws ExceptionSE
      指定されたスキーマの SourceSE を返します。サブクラスのスキーマの後処理と変換を可能にします。

      デフォルトの実装は単に XsdSchema.getSource() を返します。

      パラメーター:
      schema - スキーマ
      戻り値:
      指定されたスキーマのソース
      例外:
      ExceptionSE - エラーの場合
    • transformSchemaLocations

      protected void transformSchemaLocations(DocumentSE definitionDocument, jakarta.servlet.http.HttpServletRequest request) throws ExceptionSE
      HttpServletRequest で指定されたサーバー名を反映するように、すべての schemaLocation 属性を変換します。定義された XPath 式を評価して適切な属性を決定し、 transformLocation に委譲して、一致するすべての属性の変換を実行します。

      このメソッドは、transformSchemaLocations プロパティが true の場合にのみ呼び出されます。

      例外:
      ExceptionSE
      関連事項: