public class AllowSymLinkAliasChecker extends Object implements ContextHandler.AliasCheck
An instance of this class can be registered with ContextHandler.addAliasCheck(AliasCheck)
to check resources that are aliased to other locations. The checker uses the
Java Files.readSymbolicLink(Path)
and Path.toRealPath(java.nio.file.LinkOption...)
APIs to check if a file is aliased with symbolic links.
Constructor and Description |
---|
AllowSymLinkAliasChecker() |
public boolean check(String path, Resource resource)
ContextHandler.AliasCheck
check
in interface ContextHandler.AliasCheck
path
- The path the aliased resource was created forresource
- The aliased resourcedCopyright © 1995-2015 Webtide. All Rights Reserved.