org.apache.geronimo.deployment.util
Class URLType
java.lang.Object
org.apache.geronimo.deployment.util.URLType
public class URLType
- extends Object
The URLType class assigns type to resources, i.e. files or URLs.
The following types are available:
- UNPACKED_ARCHIVE - directory with META-INF/MANIFEST.MF
- PACKED_ARCHIVE - file with META-INF/MANIFEST.MF
- COLLECTION - directory with no META-INF/MANIFEST.MF
- RESOURCE - none of the above
MANIFEST_LOCATION
public static final String MANIFEST_LOCATION
- See Also:
- Constant Field Values
RESOURCE
public static final URLType RESOURCE
COLLECTION
public static final URLType COLLECTION
PACKED_ARCHIVE
public static final URLType PACKED_ARCHIVE
UNPACKED_ARCHIVE
public static final URLType UNPACKED_ARCHIVE
getType
public static URLType getType(File file)
throws IOException
- Throws:
IOException
getType
public static URLType getType(URL url)
throws IOException
- Returns the type of url
- Parameters:
url
-
- Returns:
- type of the url
- Throws:
IOException
- whenever there're problems with accessing portion of the url
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.