Package org.eclipse.jetty.ee10.webapp
Interface WebAppClassLoader.Context
- All Superinterfaces:
ClassVisibilityChecker
- All Known Implementing Classes:
WebAppContext
- Enclosing class:
- WebAppClassLoader
The Context in which the classloader operates.
-
Method Summary
Modifier and TypeMethodDescriptiondefault boolean
isHiddenResource
(String name, URL parentUrl) boolean
default boolean
isProtectedResource
(String name, URL webappUrl) default boolean
isServerResource
(String name, URL parentUrl) Deprecated, for removal: This API element is subject to removal in a future version.default boolean
isSystemResource
(String name, URL webappUrl) Deprecated, for removal: This API element is subject to removal in a future version.newResource
(String urlOrPath) Convert a URL or path to a Resource.Methods inherited from interface org.eclipse.jetty.util.ClassVisibilityChecker
isHiddenClass, isProtectedClass, isServerClass, isSystemClass
-
Method Details
-
newResource
Convert a URL or path to a Resource. The default implementation is a wrapper forResourceFactory.newResource(String)
.- Parameters:
urlOrPath
- The URL or path to convert- Returns:
- The Resource for the URL/path
- Throws:
IOException
- The Resource could not be created.
-
getPermissions
PermissionCollection getPermissions()- Returns:
- Returns the permissions.
-
isParentLoaderPriority
boolean isParentLoaderPriority()- Returns:
- True if the classloader should delegate first to the parent classloader (standard java behaviour) or false if the classloader should first try to load from WEB-INF/lib or WEB-INF/classes (servlet spec recommendation).
-
getExtraClasspath
-
isServerResource
@Deprecated(since="12.0.8", forRemoval=true) default boolean isServerResource(String name, URL parentUrl) Deprecated, for removal: This API element is subject to removal in a future version. -
isSystemResource
@Deprecated(since="12.0.8", forRemoval=true) default boolean isSystemResource(String name, URL webappUrl) Deprecated, for removal: This API element is subject to removal in a future version. -
isHiddenResource
-
isProtectedResource
-
isHiddenResource(String, URL)