org.apache.james.context
Class AvalonContextUtilities
java.lang.Object
|
+--org.apache.james.context.AvalonContextUtilities
- public class AvalonContextUtilities
- extends Object
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 File |
getFile(Context context,
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 |
getFile
public static File getFile(Context context,
String fileURL)
throws Exception
- Gets the file or directory described by the argument file URL.
- Parameters:
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.
- Throws:
IllegalArgumentException
- if the arguments are null or the file
URL is not appropriately formatted.
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.
Exception
"Copyright © 1999-2002 Apache Jakarta Project. All Rights Reserved."