Package org.apache.axis2.classloader
Class AbstractResourceHandle
java.lang.Object
org.apache.axis2.classloader.AbstractResourceHandle
- All Implemented Interfaces:
ResourceHandle
- Direct Known Subclasses:
DirectoryResourceHandle,JarResourceHandle
- Version:
- $Rev: 704201 $ $Date: 2008-10-14 00:22:25 +0530 (Tue, 14 Oct 2008) $
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Closes a connection to the resource indentified by this handle.Return the Attributes of the resource, or null if none.byte[]getBytes()Returns this resource data as an array of bytes.Return the Certificates of the resource, or null if none.Returns the Manifest of the JAR file from which this resource was loaded, or null if none.toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.axis2.classloader.ResourceHandle
getCodeSourceUrl, getContentLength, getInputStream, getName, getUrl, isDirectory
-
Constructor Details
-
AbstractResourceHandle
public AbstractResourceHandle()
-
-
Method Details
-
getBytes
Description copied from interface:ResourceHandleReturns this resource data as an array of bytes.- Specified by:
getBytesin interfaceResourceHandle- Throws:
IOException
-
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- Throws:
IOException
-
getCertificates
Description copied from interface:ResourceHandleReturn the Certificates of the resource, or null if none.- Specified by:
getCertificatesin interfaceResourceHandle
-
getAttributes
Description copied from interface:ResourceHandleReturn the Attributes of the resource, or null if none.- Specified by:
getAttributesin interfaceResourceHandle- Throws:
IOException
-
close
public void close()Description copied from interface:ResourceHandleCloses a connection to the resource indentified by this handle. Releases any I/O objects associated with the handle.- Specified by:
closein interfaceResourceHandle
-
toString
-