Package org.apache.axis2.classloader
Class DirectoryResourceHandle
java.lang.Object
org.apache.axis2.classloader.AbstractResourceHandle
org.apache.axis2.classloader.DirectoryResourceHandle
- All Implemented Interfaces:
ResourceHandle
- Version:
- $Rev: 704201 $ $Date: 2008-10-14 00:22:25 +0530 (Tue, 14 Oct 2008) $
-
Constructor Summary
ConstructorsConstructorDescriptionDirectoryResourceHandle(String name, File file, File codeSource, Manifest manifest) -
Method Summary
Modifier and TypeMethodDescriptionReturn the Attributes of the resource, or null if none.Always return null.Returns the CodeSource URL for the class or resource.intReturns the length of this resource data, or -1 if unknown.Returns and InputStream for reading this resource data.Returns the Manifest of the JAR file from which this resource was loaded, or null if none.getName()Return the name of the resource.getUrl()Returns the URL of the resource.booleanDoes this resource refer to a directory.Methods inherited from class org.apache.axis2.classloader.AbstractResourceHandle
close, getBytes, toString
-
Constructor Details
-
DirectoryResourceHandle
public DirectoryResourceHandle(String name, File file, File codeSource, Manifest manifest) throws MalformedURLException - Throws:
MalformedURLException
-
-
Method Details
-
getName
Description copied from interface:ResourceHandleReturn the name of the resource. The name is a "/"-separated path name that identifies the resource. -
getUrl
Description copied from interface:ResourceHandleReturns the URL of the resource. -
getCodeSourceUrl
Description copied from interface:ResourceHandleReturns the CodeSource URL for the class or resource. -
isDirectory
public boolean isDirectory()Description copied from interface:ResourceHandleDoes this resource refer to a directory. Directory resources are commly used as the basis for a URL in client application. A directory resource has 0 bytes for it's content. -
getInputStream
Description copied from interface:ResourceHandleReturns and InputStream for reading this resource data.- Throws:
IOException
-
getContentLength
public int getContentLength()Description copied from interface:ResourceHandleReturns the length of this resource data, or -1 if unknown. -
getManifest
Description copied from interface:ResourceHandleReturns the Manifest of the JAR file from which this resource was loaded, or null if none.- Specified by:
getManifestin interfaceResourceHandle- Overrides:
getManifestin classAbstractResourceHandle- Throws:
IOException
-
getAttributes
Description copied from interface:ResourceHandleReturn the Attributes of the resource, or null if none.- Specified by:
getAttributesin interfaceResourceHandle- Overrides:
getAttributesin classAbstractResourceHandle- Throws:
IOException
-
getCertificates
Always return null. This could be implementd by verifing the signatures in the manifest file against the actual file, but we don't need this right now.- Specified by:
getCertificatesin interfaceResourceHandle- Overrides:
getCertificatesin classAbstractResourceHandle- Returns:
- null
-