Package org.eclipse.jetty.server
Class SameFileAliasChecker
java.lang.Object
org.eclipse.jetty.server.SameFileAliasChecker
- All Implemented Interfaces:
ContextHandler.AliasCheck
Deprecated.
Alias checking for working with FileSystems that normalize access to the
File System.
The Java Files.isSameFile(Path, Path)
method is used to determine
if the requested file is the same as the alias file.
For File Systems that are case insensitive (eg: Microsoft Windows FAT32 and NTFS), the access to the file can be in any combination or style of upper and lowercase.
For File Systems that normalize UTF-8 access (eg: Mac OSX on HFS+ or APFS, or Linux on XFS) the the actual file could be stored using UTF-16, but be accessed using NFD UTF-8 or NFC UTF-8 for the same file.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
SameFileAliasChecker
public SameFileAliasChecker()Deprecated.
-
-
Method Details
-
check
Deprecated.Description copied from interface:ContextHandler.AliasCheck
Check an alias- Specified by:
check
in interfaceContextHandler.AliasCheck
- Parameters:
pathInContext
- The path the aliased resource was created forresource
- The aliased resourced- Returns:
- True if the resource is OK to be served.
-
AllowedResourceAliasChecker
instead.