protected static class DefaultResourceLoader.ClassPathContextResource extends ClassPathResource implements ContextResource
| コンストラクターと説明 |
|---|
ClassPathContextResource(StringSE path, ClassLoaderSE classLoader) |
| 修飾子と型 | メソッドと説明 |
|---|---|
Resource | createRelative(StringSE relativePath) この実装は ClassPathResource を作成し、この記述子の作成に使用されたパスに相対的な指定されたパスを適用します。 |
StringSE | getPathWithinContext() 囲んでいる「コンテキスト」内のパスを返します。 |
equals, exists, getClassLoader, getDescription, getFilename, getInputStream, getPath, getURL, hashCode, isReadable, resolveURLcontentLength, customizeConnection, customizeConnection, getFile, getFile, getFileForLastModifiedCheck, isFile, isFile, lastModified, readableChannelgetURI, isOpen, toStringcloneSE, finalizeSE, getClassSE, notifySE, notifyAllSE, waitSE, waitSE, waitSEcontentLength, exists, getDescription, getFile, getFilename, getURI, getURL, isFile, isOpen, isReadable, lastModified, readableChannelgetInputStreampublic ClassPathContextResource(StringSE path, @Nullable ClassLoaderSE classLoader)
public StringSE getPathWithinContext()
ContextResourceこれは通常、コンテキスト固有のルートディレクトリへの相対パスです。ServletContext ルートまたは PortletContext ルート。
ContextResource の getPathWithinContext public Resource createRelative(StringSE relativePath)
ClassPathResourceClassPathResource を作成し、この記述子の作成に使用されたパスに相対的な指定されたパスを適用します。Resource の createRelative ClassPathResource の createRelative relativePath - 相対パス (このリソースに関連して)StringUtils.applyRelativePath(String, String)