| java.lang.Object org.apache.james.context.AvalonContextUtilities
AvalonContextUtilities | public class AvalonContextUtilities (Code) | | 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 | |
public static File | getFile(Context context, String fileURL) Gets the file or directory described by the argument file URL.
Parameters: context - the Avalon context Parameters: fileURL - an appropriately formatted URL describing a file onthe filesystem on which the server is running. |
getFile | public static File getFile(Context context, String fileURL) throws Exception(Code) | | Gets the file or directory described by the argument file URL.
Parameters: context - the Avalon context Parameters: fileURL - an appropriately formatted URL describing a file onthe filesystem on which the server is running. The URL is evaluated as a location relative to theapplication home, unless it begins with a slash. Inthe latter case the file location is evaluated relativeto the underlying file system root. throws: IllegalArgumentException - if the arguments are null or the fileURL is not appropriately formatted. throws: ContextException - if the underlying context generates aContextException, if the application home isnot correct, or if an IOException is generatedwhile accessing the file. |
|
|