Class SymlinkAllowedResourceAliasChecker
java.lang.Object
org.eclipse.jetty.util.component.AbstractLifeCycle
org.eclipse.jetty.server.AllowedResourceAliasChecker
org.eclipse.jetty.server.SymlinkAllowedResourceAliasChecker
- All Implemented Interfaces:
AliasCheck, LifeCycle
An extension of
AllowedResourceAliasChecker which will allow symlinks alias to arbitrary
targets, so long as the symlink file itself is an allowed resource. Non symlinked paths are never
allowed by this AliasCheck.-
Nested Class Summary
Nested classes/interfaces inherited from class AbstractLifeCycle
AbstractLifeCycle.AbstractLifeCycleListener, AbstractLifeCycle.StopExceptionNested classes/interfaces inherited from interface LifeCycle
LifeCycle.Listener -
Field Summary
Fields inherited from class AllowedResourceAliasChecker
_base, _baseResource, FOLLOW_LINKS, NO_FOLLOW_LINKS -
Constructor Summary
ConstructorsConstructorDescriptionSymlinkAllowedResourceAliasChecker(ContextHandler contextHandler) SymlinkAllowedResourceAliasChecker(ContextHandler contextHandler, Supplier<Resource> resourceBaseSupplier) SymlinkAllowedResourceAliasChecker(ContextHandler contextHandler, Resource baseResource) -
Method Summary
Methods inherited from class AllowedResourceAliasChecker
check, checkAlias, doStart, doStop, getBaseResource, getContextHandler, getPath, initialize, isAllowed, isSameFile, toStringMethods inherited from class AbstractLifeCycle
addEventListener, getEventListeners, getState, getState, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeEventListener, setEventListeners, start, stop
-
Constructor Details
-
SymlinkAllowedResourceAliasChecker
- Parameters:
contextHandler- the context handler to use.
-
SymlinkAllowedResourceAliasChecker
-
SymlinkAllowedResourceAliasChecker
public SymlinkAllowedResourceAliasChecker(ContextHandler contextHandler, Supplier<Resource> resourceBaseSupplier)
-
-
Method Details
-
check
- Overrides:
checkin classAllowedResourceAliasChecker
-