org.apache.geronimo.deployment.util
Class URLType

java.lang.Object
  extended by 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:


Field Summary
static URLType COLLECTION
           
static String MANIFEST_LOCATION
           
static URLType PACKED_ARCHIVE
           
static URLType RESOURCE
           
static URLType UNPACKED_ARCHIVE
           
 
Method Summary
 boolean equals(Object obj)
           
static URLType getType(File file)
           
static URLType getType(URL url)
          Returns the type of url
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Method Detail

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.