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 Details

    • newResource

      org.eclipse.jetty.util.resource.Resource newResource(String urlOrPath) throws IOException
      Convert a URL or path to a Resource. The default implementation is a wrapper for ResourceFactory.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

      default boolean isHiddenClass(Class<?> clazz)
      Specified by:
      isHiddenClass in interface org.eclipse.jetty.util.ClassVisibilityChecker
    • isHiddenResource

      default boolean isHiddenResource(String name, URL url)
    • getHiddenClasses

      @ManagedAttribute(value="classes and packages hidden by the context classloader", readonly=true) default String[] getHiddenClasses()
    • getProtectedClassMatcher

      org.eclipse.jetty.util.ClassMatcher getProtectedClassMatcher()
    • isProtectedClass

      default boolean isProtectedClass(Class<?> clazz)
      Specified by:
      isProtectedClass in interface org.eclipse.jetty.util.ClassVisibilityChecker
    • isProtectedResource

      default boolean isProtectedResource(String name, URL url)
    • getProtectedClasses

      @ManagedAttribute(value="classes and packages protected by context classloader", readonly=true) default String[] getProtectedClasses()
    • getPermissions

      default PermissionCollection getPermissions()
      Returns:
      Returns the permissions.