Class SymlinkAllowedResourceAliasChecker

java.lang.Object
org.eclipse.jetty.util.component.AbstractLifeCycle
org.eclipse.jetty.server.AllowedResourceAliasChecker
org.eclipse.jetty.server.SymlinkAllowedResourceAliasChecker
All Implemented Interfaces:
ContextHandler.AliasCheck, org.eclipse.jetty.util.component.LifeCycle

public class SymlinkAllowedResourceAliasChecker extends AllowedResourceAliasChecker
An extension of AllowedResourceAliasChecker which will allow symlinks alias to arbitrary targets, so long as the symlink file itself is an allowed resource.
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle

    org.eclipse.jetty.util.component.AbstractLifeCycle.AbstractLifeCycleListener, org.eclipse.jetty.util.component.AbstractLifeCycle.StopException

    Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.LifeCycle

    org.eclipse.jetty.util.component.LifeCycle.Listener
  • Field Summary

    Fields inherited from class org.eclipse.jetty.server.AllowedResourceAliasChecker

    _base, FOLLOW_LINKS, NO_FOLLOW_LINKS

    Fields inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle

    FAILED, STARTED, STARTING, STOPPED, STOPPING
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected boolean
    check(String pathInContext, Path path)
     

    Methods inherited from class org.eclipse.jetty.server.AllowedResourceAliasChecker

    check, doStart, doStop, getContextHandler, getPath, initialize, isAllowed, isSameFile, toString

    Methods inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle

    addEventListener, getEventListeners, getState, getState, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeEventListener, setEventListeners, start, stop

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • SymlinkAllowedResourceAliasChecker

      public SymlinkAllowedResourceAliasChecker(ContextHandler contextHandler)
      Parameters:
      contextHandler - the context handler to use.
  • Method Details