Class ResolverLocalFilesystem


  • public class ResolverLocalFilesystem
    extends ResourceResolverSpi
    A simple ResourceResolver for requests into the local filesystem.
    • Field Detail

      • FILE_URI_LENGTH

        private static final int FILE_URI_LENGTH
      • LOG

        private static final org.slf4j.Logger LOG
    • Constructor Detail

      • ResolverLocalFilesystem

        public ResolverLocalFilesystem()
    • Method Detail

      • engineIsThreadSafe

        public boolean engineIsThreadSafe()
        Description copied from class: ResourceResolverSpi
        Tells if the implementation does can be reused by several threads safely. It normally means that the implementation does not have any member, or there is member change between engineCanResolve and engineResolve invocations. Or it maintains all member info in ThreadLocal methods.
        Overrides:
        engineIsThreadSafe in class ResourceResolverSpi
      • translateUriToFilename

        private static java.lang.String translateUriToFilename​(java.lang.String uri)
        Method translateUriToFilename
        Parameters:
        uri -
        Returns:
        the string of the filename
      • getNewURI

        private static java.net.URI getNewURI​(java.lang.String uri,
                                              java.lang.String baseURI)
                                       throws java.net.URISyntaxException
        Throws:
        java.net.URISyntaxException