gov.noaa.eds.xapi.generic.handlers
Class UrlHandler

java.lang.Object
  extended bygov.noaa.eds.xapi.generic.handlers.UrlHandler
All Implemented Interfaces:
DomHandler
Direct Known Subclasses:
ResourceHandler

public class UrlHandler
extends java.lang.Object
implements DomHandler

Handles communication between a URL.

Version:
$Id: UrlHandler.java,v 1.2 2004/12/23 23:39:15 mrxtravis Exp $
Author:
tns

Constructor Summary
UrlHandler()
          Creates a new instance of UrlHandler
 
Method Summary
 long getMillisBetweenChecks()
          Getter for property timeBetweenChecks.
 org.w3c.dom.Document getResourceAsDocument()
          Returns the URL as a Document
 java.net.URL getUrl()
          Getter for property url.
 java.lang.String getUrlString()
          Getter for property urlString.
 void setMillisBetweenChecks(long millisBetweenChecks)
          Setter for property timeBetweenChecks.
 void setResourceAsNode(org.w3c.dom.Node node)
          Unsupported
 void setUrl(java.net.URL url)
          Setter for property url.
 void setUrlString(java.lang.String urlString)
          Setter for property urlString.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UrlHandler

public UrlHandler()
Creates a new instance of UrlHandler

Method Detail

setResourceAsNode

public void setResourceAsNode(org.w3c.dom.Node node)
Unsupported

Specified by:
setResourceAsNode in interface DomHandler
Parameters:
node - Set the resource to be a reflextion of this node

getResourceAsDocument

public org.w3c.dom.Document getResourceAsDocument()
                                           throws DomHandlerException
Returns the URL as a Document

Specified by:
getResourceAsDocument in interface DomHandler
Returns:
The URL converted into a Document
Throws:
DomHandlerException

getUrl

public java.net.URL getUrl()
Getter for property url.

Returns:
Value of property url.

setUrl

public void setUrl(java.net.URL url)
Setter for property url.

Parameters:
url - New value of property url.

getUrlString

public java.lang.String getUrlString()
Getter for property urlString.

Returns:
Value of property urlString.

setUrlString

public void setUrlString(java.lang.String urlString)
                  throws java.net.MalformedURLException
Setter for property urlString.

Parameters:
urlString - New value of property urlString.
Throws:
java.net.MalformedURLException

getMillisBetweenChecks

public long getMillisBetweenChecks()
Getter for property timeBetweenChecks.

Returns:
Value of property timeBetweenChecks.

setMillisBetweenChecks

public void setMillisBetweenChecks(long millisBetweenChecks)
Setter for property timeBetweenChecks.



Copyright © 2004 National Oceanic and Atmospheric Administration > National Geophysical Data Center > Enterprise Data Services Division. All Rights Reserved.