Esri Geoportal Server
1.0

com.esri.gpt.framework.resource.common
Class UrlUri

java.lang.Object
  extended by com.esri.gpt.framework.resource.common.UrlUri
All Implemented Interfaces:
SourceUri

public class UrlUri
extends Object
implements SourceUri

URL-based source URI.


Constructor Summary
UrlUri(String url)
          Creates instance of the source URI.
UrlUri(URL url)
          Creates instance of the source URI.
 
Method Summary
 String asString()
          Provides pure string representation of the Source URI.
 boolean equals(Object sourceUri)
           
 URL getUrl()
          Gets URL.
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UrlUri

public UrlUri(URL url)
Creates instance of the source URI.

Parameters:
url - base URL

UrlUri

public UrlUri(String url)
Creates instance of the source URI.

Parameters:
url - base URL
Method Detail

getUrl

public URL getUrl()
Gets URL.

Returns:
URL or null if no URL

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object

asString

public String asString()
Description copied from interface: SourceUri
Provides pure string representation of the Source URI.

Specified by:
asString in interface SourceUri
Returns:
pure string representation of the Source URI

toString

public String toString()
Overrides:
toString in class Object

Esri Geoportal Server
1.0

Copyright 2011 Environmental Systems Research Institute. All rights reserved. Use is subject to license terms.