Class SolrVelocityResourceLoader


  • public class SolrVelocityResourceLoader
    extends org.apache.velocity.runtime.resource.loader.ResourceLoader
    Velocity resource loader wrapper around Solr resource loader
    • Constructor Detail

      • SolrVelocityResourceLoader

        public SolrVelocityResourceLoader​(SolrResourceLoader loader)
    • Method Detail

      • init

        public void init​(org.apache.velocity.util.ExtProperties extendedProperties)
        Specified by:
        init in class org.apache.velocity.runtime.resource.loader.ResourceLoader
      • getResourceReader

        public Reader getResourceReader​(String source,
                                        String encoding)
                                 throws org.apache.velocity.exception.ResourceNotFoundException
        Specified by:
        getResourceReader in class org.apache.velocity.runtime.resource.loader.ResourceLoader
        Throws:
        org.apache.velocity.exception.ResourceNotFoundException
      • isSourceModified

        public boolean isSourceModified​(org.apache.velocity.runtime.resource.Resource resource)
        Specified by:
        isSourceModified in class org.apache.velocity.runtime.resource.loader.ResourceLoader
      • getLastModified

        public long getLastModified​(org.apache.velocity.runtime.resource.Resource resource)
        Specified by:
        getLastModified in class org.apache.velocity.runtime.resource.loader.ResourceLoader