Top Description Fields Constructors Methods
org.eclipse.jetty.server

public Class SymlinkAllowedResourceAliasChecker

extends AllowedResourceAliasChecker
Class Inheritance
Imports
java.io.File, java.nio.file.Files, .Path, org.eclipse.jetty.server.handler.ContextHandler, org.eclipse.jetty.util.resource.Resource, org.slf4j.Logger, .LoggerFactory

An extension of AllowedResourceAliasChecker which will allow symlinks alias to arbitrary targets, so long as the symlink file itself is an allowed resource.

Field Summary

Modifier and TypeField and Description
private static final Logger
Inherited from org.eclipse.jetty.server.AllowedResourceAliasChecker:
_baseFOLLOW_LINKSNO_FOLLOW_LINKS

Constructor Summary

AccessConstructor and Description
public
SymlinkAllowedResourceAliasChecker(ContextHandler
the context handler to use.
contextHandler
)

public

Method Summary

Modifier and TypeMethod and Description
protected boolean
Inherited from org.eclipse.jetty.server.AllowedResourceAliasChecker:
checkAliasdoStartdoStopgetContextHandlergetPathinitializeisAllowedisSameFiletoString

Field Detail

LOGback to summary
private static final Logger LOG

Hides org.eclipse.jetty.server.AllowedResourceAliasChecker.LOG.

Constructor Detail

SymlinkAllowedResourceAliasCheckerback to summary
public SymlinkAllowedResourceAliasChecker(ContextHandler contextHandler)
Parameters
contextHandler:ContextHandler

the context handler to use.

SymlinkAllowedResourceAliasCheckerback to summary
public SymlinkAllowedResourceAliasChecker(ContextHandler contextHandler, Resource baseResource)

Method Detail

checkback to summary
protected boolean check(String pathInContext, Path path)

Overrides org.eclipse.jetty.server.AllowedResourceAliasChecker.check.

Annotations
@Override