Class ContextHandler.ApproveNonExistentDirectoryAliases

  • All Implemented Interfaces:
    ContextHandler.AliasCheck
    Enclosing class:
    ContextHandler

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

      • ApproveNonExistentDirectoryAliases

        public ApproveNonExistentDirectoryAliases()
        Deprecated.
    • Method Detail

      • check

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