org.springframework.core.io

Class DefaultResourceLoader.ClassPathContextResource

    • Constructor Detail

      • ClassPathContextResource

        public ClassPathContextResource(java.lang.String path,
                                        @Nullable
                                        java.lang.ClassLoader classLoader)
    • Method Detail

      • getPathWithinContext

        public java.lang.String getPathWithinContext()
        Description copied from interface: ContextResource
        Return the path within the enclosing 'context'.

        This is typically path relative to a context-specific root directory, e.g. a ServletContext root or a PortletContext root.

        Specified by:
        getPathWithinContext in interface ContextResource