Class DefaultResourceLoader.ClassPathContextResource
java.lang.Object
nl.basjes.parse.useragent.utils.springframework.core.io.AbstractResource
nl.basjes.parse.useragent.utils.springframework.core.io.AbstractFileResolvingResource
nl.basjes.parse.useragent.utils.springframework.core.io.ClassPathResource
nl.basjes.parse.useragent.utils.springframework.core.io.DefaultResourceLoader.ClassPathContextResource
- All Implemented Interfaces:
InputStreamSource,Resource
- Enclosing class:
DefaultResourceLoader
protected static class DefaultResourceLoader.ClassPathContextResource
extends ClassPathResource
implements Resource
ClassPathResource that explicitly expresses a context-relative path
through implementing the ContextResource interface.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateRelative(String relativePath) This implementation creates a ClassPathResource, applying the given path relative to the path of the underlying resource of this descriptor.Methods inherited from class nl.basjes.parse.useragent.utils.springframework.core.io.ClassPathResource
equals, exists, getClassLoader, getDescription, getFilename, getInputStream, getPath, getURL, hashCode, resolveURLMethods inherited from class nl.basjes.parse.useragent.utils.springframework.core.io.AbstractFileResolvingResource
contentLength, customizeConnection, customizeConnection, getFile, getFile, isFile, isFileMethods inherited from class nl.basjes.parse.useragent.utils.springframework.core.io.AbstractResource
getURI, isOpen, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface nl.basjes.parse.useragent.utils.springframework.core.io.InputStreamSource
getInputStreamMethods inherited from interface nl.basjes.parse.useragent.utils.springframework.core.io.Resource
contentLength, exists, getDescription, getFile, getFilename, getURI, getURL, isFile, isOpen
-
Constructor Details
-
ClassPathContextResource
-
-
Method Details
-
createRelative
Description copied from class:ClassPathResourceThis implementation creates a ClassPathResource, applying the given path relative to the path of the underlying resource of this descriptor. see org.springframework.util.StringUtils#applyRelativePath(String, String)- Specified by:
createRelativein interfaceResource- Overrides:
createRelativein classClassPathResource- Parameters:
relativePath- the relative path (relative to this resource)- Returns:
- the resource handle for the relative resource
-