org.mortbay.http
Class ContextLoader

java.lang.Object
  |
  +--java.lang.ClassLoader
        |
        +--java.security.SecureClassLoader
              |
              +--java.net.URLClassLoader
                    |
                    +--org.mortbay.http.ContextLoader

public class ContextLoader
extends java.net.URLClassLoader

ClassLoader for HandlerContext. Specializes URLClassLoader with some utility and file mapping methods.

Version:
$Id: ContextLoader.java,v 1.1 2001/09/02 01:13:08 gregwilkins Exp $
Author:
Greg Wilkins (gregw)

Constructor Summary
ContextLoader(java.lang.String classPath, java.lang.ClassLoader parent, java.security.PermissionCollection permisions)
          Constructor.
 
Method Summary
 java.lang.String getFileClassPath()
           
 java.security.PermissionCollection getPermissions(java.security.CodeSource cs)
           
 java.lang.String toString()
           
 
Methods inherited from class java.net.URLClassLoader
findResource, findResources, getURLs, newInstance, newInstance
 
Methods inherited from class java.lang.ClassLoader
getParent, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ContextLoader

public ContextLoader(java.lang.String classPath,
                     java.lang.ClassLoader parent,
                     java.security.PermissionCollection permisions)
Constructor.
Parameters:
servletClassPath - Coma separated path of filenames or URLs pointing to directories or jar files. Directories should end with '/'.
quiet - If true, non existant paths are not reported
Throws:
IOException -  
Method Detail

getFileClassPath

public java.lang.String getFileClassPath()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getPermissions

public java.security.PermissionCollection getPermissions(java.security.CodeSource cs)


Copyright © 2000 Mortbay Consulting Pty. Ltd. All Rights Reserved.