| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.james.context.AvalonContextUtilities
public class AvalonContextUtilities
This class is essentially a set of static functions for extracting information from the Avalon context. This class should never be instantiated. Each function takes the context as a first argument.
| Method Summary | |
|---|---|
static java.io.File | 
getFile(org.apache.avalon.framework.context.Context context,
        java.lang.String fileURL)
Gets the file or directory described by the argument file URL.  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Method Detail | 
|---|
public static java.io.File getFile(org.apache.avalon.framework.context.Context context,
                                   java.lang.String fileURL)
                            throws java.lang.Exception
context - the Avalon contextfileURL - an appropriately formatted URL describing a file on
                the filesystem on which the server is running.  The 
                URL is evaluated as a location relative to the
                application home, unless it begins with a slash.  In
                the latter case the file location is evaluated relative
                to the underlying file system root.
java.lang.IllegalArgumentException - if the arguments are null or the file
                                  URL is not appropriately formatted.
org.apache.avalon.framework.context.ContextException - if the underlying context generates a
                          ContextException, if the application home is
                          not correct, or if an IOException is generated
                          while accessing the file.
java.lang.Exception
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||