クラス DefaultResourceLoader.ClassPathContextResource

実装されたすべてのインターフェース:
ContextResourceInputStreamSourceResource
含まれているクラス:
DefaultResourceLoader

protected static class DefaultResourceLoader.ClassPathContextResource extends ClassPathResource implements ContextResource
ContextResource インターフェースを実装することにより、コンテキスト相対パスを明示的に表現する ClassPathResource。
  • コンストラクターの詳細

  • メソッドの詳細

    • getPathWithinContext

      public StringSE getPathWithinContext()
      インターフェースからコピーされた説明: ContextResource
      囲んでいる「コンテキスト」内のパスを返します。

      これは通常、コンテキスト固有のルートディレクトリへの相対パスです。ServletContext ルートまたは PortletContext ルート。

      次で指定:
      インターフェース ContextResourcegetPathWithinContext 
    • createRelative

      public Resource createRelative(StringSE relativePath)
      クラスからコピーされた説明: ClassPathResource
      この実装は ClassPathResource を作成し、この記述子の作成に使用されたパスに相対的な指定されたパスを適用します。
      次で指定:
      インターフェース ResourcecreateRelative 
      オーバーライド:
      クラス ClassPathResourcecreateRelative 
      パラメーター:
      relativePath - 相対パス (このリソースに関連して)
      戻り値:
      相対リソースのリソースハンドル
      関連事項: