com.esri.wms.client
Class ResourceURL

java.lang.Object
  extended by com.esri.wms.client.ResourceURL
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ImageURL

public class ResourceURL
extends Object
implements Serializable

A URL with MIME type.

See Also:
Serialized Form

Field Summary
protected  String typeMIME
          URL MIME type.
protected  String URL
          The URL string.
 
Constructor Summary
protected ResourceURL()
          Instantiates an object of ResourceURL.
  ResourceURL(String format, String url)
          Instantiates an object of ResourceURL with the given format and URL.
 
Method Summary
 boolean equals(Object obj)
          Compares the specified object with this instance for equality.
 InputStream getAsStream(RequestHandler handler)
          Gets the resource as stream.
 String getMIMEType()
          Gets the MIME type of the URL.
 String getURL()
          Gets the resource URL as a string.
 int hashCode()
          Returns the hash code of the request object.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

typeMIME

protected String typeMIME
URL MIME type.


URL

protected String URL
The URL string.

Constructor Detail

ResourceURL

protected ResourceURL()
Instantiates an object of ResourceURL.


ResourceURL

public ResourceURL(String format,
                   String url)
Instantiates an object of ResourceURL with the given format and URL.

Method Detail

getMIMEType

public String getMIMEType()
Gets the MIME type of the URL.


getURL

public String getURL()
Gets the resource URL as a string.


getAsStream

public InputStream getAsStream(RequestHandler handler)
                        throws IOException
Gets the resource as stream.

Parameters:
handler - is the RequestHandler used for connection.
Returns:
Returns the resource as inputStream.
Throws:
IOException

hashCode

public int hashCode()
Returns the hash code of the request object.

Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Compares the specified object with this instance for equality. Returns true if all fields of the two Objects are equal.

Overrides:
equals in class Object
Parameters:
obj - object to be compared for equality with this instance.
Returns:
Returns true if the specified object is equal to this instance.