Interface WebAppClassLoader.Context
- All Superinterfaces:
org.eclipse.jetty.util.ClassVisibilityChecker
- Enclosing class:
WebAppClassLoader
public static interface WebAppClassLoader.Context
extends org.eclipse.jetty.util.ClassVisibilityChecker
The Context in which the classloader operates.
-
Method Summary
Modifier and TypeMethodDescriptionList<org.eclipse.jetty.util.resource.Resource> default String[]org.eclipse.jetty.util.ClassMatcherdefault PermissionCollectiondefault String[]org.eclipse.jetty.util.ClassMatcherdefault booleanisHiddenClass(Class<?> clazz) default booleanisHiddenResource(String name, URL url) booleandefault booleanisProtectedClass(Class<?> clazz) default booleanisProtectedResource(String name, URL url) org.eclipse.jetty.util.resource.ResourcenewResource(String urlOrPath) Convert a URL or path to a Resource.Methods inherited from interface org.eclipse.jetty.util.ClassVisibilityChecker
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.
-
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
List<org.eclipse.jetty.util.resource.Resource> getExtraClasspath() -
getHiddenClassMatcher
org.eclipse.jetty.util.ClassMatcher getHiddenClassMatcher() -
isHiddenClass
- Specified by:
isHiddenClassin interfaceorg.eclipse.jetty.util.ClassVisibilityChecker
-
isHiddenResource
-
getHiddenClasses
@ManagedAttribute(value="classes and packages hidden by the context classloader", readonly=true) default String[] getHiddenClasses() -
getProtectedClassMatcher
org.eclipse.jetty.util.ClassMatcher getProtectedClassMatcher() -
isProtectedClass
- Specified by:
isProtectedClassin interfaceorg.eclipse.jetty.util.ClassVisibilityChecker
-
isProtectedResource
-
getProtectedClasses
@ManagedAttribute(value="classes and packages protected by context classloader", readonly=true) default String[] getProtectedClasses() -
getPermissions
- Returns:
- Returns the permissions.
-