org.jboss.ws.core.utils
Class ResourceURL

java.lang.Object
  extended by org.jboss.ws.core.utils.ResourceURL

public class ResourceURL
extends java.lang.Object

A wrapper around an URL that can handle input streams for resources in nested jars. The jdk-1.5.0_10 cannot handle this type of URL jar:file://somepath/jaxws-eardeployment.ear!/jaxws-eardeployment.war!/WEB-INF/wsdl/TestEndpoint.wsdl

Since:
12-Dec-2006 (Dosi's birthday)
Author:
Thomas.Diesler@jboss.org

Constructor Summary
ResourceURL(java.net.URL targetURL)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.net.URL getTargetURL()
           
 int hashCode()
           
 java.io.InputStream openStream()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ResourceURL

public ResourceURL(java.net.URL targetURL)
Method Detail

getTargetURL

public java.net.URL getTargetURL()

openStream

public java.io.InputStream openStream()
                               throws java.io.IOException
Throws:
java.io.IOException

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2009 JBoss, a division of Red Hat. All Rights Reserved.