Package org.eclipse.jetty.webapp
Interface WebAppClassLoader.Context
-
- All Known Implementing Classes:
WebAppContext
- Enclosing class:
- WebAppClassLoader
public static interface WebAppClassLoader.ContextThe Context in which the classloader operates.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetExtraClasspath()java.security.PermissionCollectiongetPermissions()booleanisParentLoaderPriority()booleanisServerClass(java.lang.Class<?> clazz)Is the class a Server Class.booleanisServerResource(java.lang.String name, java.net.URL parent_url)booleanisSystemClass(java.lang.Class<?> clazz)Is the class a System Class.booleanisSystemResource(java.lang.String name, java.net.URL webapp_url)org.eclipse.jetty.util.resource.ResourcenewResource(java.lang.String urlOrPath)Convert a URL or path to a Resource.
-
-
-
Method Detail
-
newResource
org.eclipse.jetty.util.resource.Resource newResource(java.lang.String urlOrPath) throws java.io.IOExceptionConvert a URL or path to a Resource. The default implementation is a wrapper forResource.newResource(String).- Parameters:
urlOrPath- The URL or path to convert- Returns:
- The Resource for the URL/path
- Throws:
java.io.IOException- The Resource could not be created.
-
getPermissions
java.security.PermissionCollection getPermissions()
- Returns:
- Returns the permissions.
-
isSystemClass
boolean isSystemClass(java.lang.Class<?> clazz)
Is the class a System Class. A System class is a class that is visible to a webapplication, but that cannot be overridden by the contents of WEB-INF/lib or WEB-INF/classes- Parameters:
clazz- The fully qualified name of the class.- Returns:
- True if the class is a system class.
-
isServerClass
boolean isServerClass(java.lang.Class<?> clazz)
Is the class a Server Class. A Server class is a class that is part of the implementation of the server and is NIT visible to a webapplication. The web application may provide it's own implementation of the class, to be loaded from WEB-INF/lib or WEB-INF/classes- Parameters:
clazz- The fully qualified name of the class.- Returns:
- True if the class is a server class.
-
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
java.lang.String getExtraClasspath()
-
isServerResource
boolean isServerResource(java.lang.String name, java.net.URL parent_url)
-
isSystemResource
boolean isSystemResource(java.lang.String name, java.net.URL webapp_url)
-
-