com.uwyn.rife.engine
Class UrlResource

java.lang.Object
  extended by com.uwyn.rife.engine.UrlResource

public class UrlResource
extends Object

Packages an URL resource together with additional data that can't be stored in the URL instance itself.

Since:
1.5
Version:
$Revision: 3634 $
Author:
Geert Bevin (gbevin[remove] at uwyn dot com)

Constructor Summary
UrlResource(URL url, String sourceName)
          Creates a new UrlResource instance.
 
Method Summary
 boolean equals(Object other)
           
 String getSourceName()
          Retrieves the source name that was used to look up the resource.
 URL getUrl()
          Retrieves the URL of the resource.
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UrlResource

public UrlResource(URL url,
                   String sourceName)
Creates a new UrlResource instance.

Parameters:
url - the URL of the resource
sourceName - the source name that was used to look up the resource
Since:
1.5
Method Detail

getUrl

public URL getUrl()
Retrieves the URL of the resource.

Returns:
the URL of the resource
Since:
1.5

getSourceName

public String getSourceName()
Retrieves the source name that was used to look up the resource.

Returns:
the source name that was used to look up the resource
Since:
1.5

equals

public boolean equals(Object other)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2001-2007 Uwyn sprl/bvba. All Rights Reserved.