Class ContextHandler.ApproveNonExistentDirectoryAliases

  • All Implemented Interfaces:
    Enclosing class:

    public static class ContextHandler.ApproveNonExistentDirectoryAliases
    extends java.lang.Object
    implements ContextHandler.AliasCheck
    Approve Aliases of a non existent directory. If a directory "/foobar/" does not exist, then the resource is aliased to "/foobar". Accept such aliases.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean check​(java.lang.String path, Resource resource)
      Check an alias
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ApproveNonExistentDirectoryAliases

        public ApproveNonExistentDirectoryAliases()
    • Method Detail

      • check

        public boolean check​(java.lang.String path,
                             Resource resource)
        Description copied from interface: ContextHandler.AliasCheck
        Check an alias
        Specified by:
        check in interface ContextHandler.AliasCheck
        path - The path the aliased resource was created for
        resource - The aliased resourced
        True if the resource is OK to be served.