Package org.eclipse.jetty.server
Class AllowedResourceAliasChecker
- java.lang.Object
-
- org.eclipse.jetty.util.component.AbstractLifeCycle
-
- org.eclipse.jetty.server.AllowedResourceAliasChecker
-
- All Implemented Interfaces:
ContextHandler.AliasCheck
,LifeCycle
- Direct Known Subclasses:
SymlinkAllowedResourceAliasChecker
@Deprecated(since="2021-05-27") public class AllowedResourceAliasChecker extends AbstractLifeCycle implements ContextHandler.AliasCheck
Deprecated.The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.This will approve any alias to anything inside of the
ContextHandler
s resource base which is not protected by a protected target as defined byContextHandler.getProtectedTargets()
at start.Aliases approved by this may still be able to bypass SecurityConstraints, so this class would need to be extended to enforce any additional security constraints that are required.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
AbstractLifeCycle.AbstractLifeCycleListener
-
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.LifeCycle
LifeCycle.Listener
-
-
Constructor Summary
Constructors Constructor Description AllowedResourceAliasChecker(ContextHandler contextHandler)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
check(java.lang.String pathInContext, Resource resource)
Deprecated.Check an aliasjava.lang.String
toString()
Deprecated.-
Methods inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
addLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, setStopTimeout, start, stop
-
-
-
-
Constructor Detail
-
AllowedResourceAliasChecker
public AllowedResourceAliasChecker(ContextHandler contextHandler)
Deprecated.- Parameters:
contextHandler
- the context handler to use.
-
-
Method Detail
-
check
public boolean check(java.lang.String pathInContext, Resource resource)
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.
-
toString
public java.lang.String toString()
Deprecated.- Overrides:
toString
in classAbstractLifeCycle
-
-