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, resolveURL
contentLength, customizeConnection, customizeConnection, getFile, getFile, getFileForLastModifiedCheck, isFile, isFile, lastModified, readableChannel
getURI, isOpen, toString
cloneSE, finalizeSE, getClassSE, notifySE, notifyAllSE, waitSE, waitSE, waitSE
contentLength, exists, getDescription, getFile, getFilename, getURI, getURL, isFile, isOpen, isReadable, lastModified, readableChannel
getInputStream
public ClassPathContextResource(StringSE path, @Nullable ClassLoaderSE classLoader)
public StringSE getPathWithinContext()
ContextResource
これは通常、コンテキスト固有のルートディレクトリへの相対パスです。ServletContext ルートまたは PortletContext ルート。
ContextResource
の getPathWithinContext
public Resource createRelative(StringSE relativePath)
ClassPathResource
Resource
の createRelative
ClassPathResource
の createRelative
relativePath
- 相対パス (このリソースに関連して)StringUtils.applyRelativePath(String, String)