Package org.eclipse.jetty.server.handler
Class AllowSymLinkAliasChecker
java.lang.Object
org.eclipse.jetty.server.handler.AllowSymLinkAliasChecker
- All Implemented Interfaces:
ContextHandler.AliasCheck
@Deprecated
public class AllowSymLinkAliasChecker
extends Object
implements ContextHandler.AliasCheck
Deprecated.
Symbolic Link AliasChecker.
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.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Deprecated.Check an aliasprivate boolean
hasSymbolicLink
(Path path) Deprecated.
-
Field Details
-
LOG
Deprecated.
-
-
Constructor Details
-
AllowSymLinkAliasChecker
public AllowSymLinkAliasChecker()Deprecated.
-
-
Method Details
-
check
Deprecated.Description copied from interface:ContextHandler.AliasCheck
Check an alias- Specified by:
check
in interfaceContextHandler.AliasCheck
- Parameters:
uri
- The path the aliased resource was created forresource
- The aliased resourced- Returns:
- True if the resource is OK to be served.
-
hasSymbolicLink
Deprecated.
-
SymlinkAllowedResourceAliasChecker
instead.