org.globus.ogsa.impl.core.notification.framework.utils
Class MiscUtils

java.lang.Object
  extended byorg.globus.ogsa.impl.core.notification.framework.utils.MiscUtils

public class MiscUtils
extends java.lang.Object

The MiscUtils class. This class will hold miscellaneous functions related to notification.


Constructor Summary
MiscUtils()
           
 
Method Summary
static java.lang.String docToString(org.w3c.dom.Document aDoc)
          The docToString Method.
static java.lang.String elementToString(org.w3c.dom.Element aElement)
          The elementToString method.
static java.lang.String getEndpoint(org.w3c.dom.Element gsr)
          The getHandle method.
static java.lang.String getEndpoint(org.w3c.dom.Element gsr, java.lang.String port)
          The getEndpoint method.
static java.lang.String nodeToString(org.w3c.dom.Node aNode)
          The nodeToString method.
static org.w3c.dom.Element stringToElement(java.lang.String anXMLNodeInStringFormat)
          The stringToElement method.
static org.w3c.dom.Node stringToNode(java.lang.String anXMLNodeInStringFormat)
          The stringToNode method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MiscUtils

public MiscUtils()
Method Detail

docToString

public static java.lang.String docToString(org.w3c.dom.Document aDoc)
                                    throws java.io.IOException,
                                           javax.xml.parsers.ParserConfigurationException,
                                           org.xml.sax.SAXException
The docToString Method. This method converts a given Document to String.

Parameters:
aDoc - - The Document to be converted.
Returns:
String - The converted Document.
Throws:
java.io.IOException
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException

nodeToString

public static java.lang.String nodeToString(org.w3c.dom.Node aNode)
                                     throws java.io.IOException,
                                            javax.xml.parsers.ParserConfigurationException,
                                            org.xml.sax.SAXException
The nodeToString method. This method converts a node to string.

Parameters:
aNode - - The node to be converted.
Returns:
String - The converted String.
Throws:
java.io.IOException
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException

elementToString

public static java.lang.String elementToString(org.w3c.dom.Element aElement)
                                        throws java.io.IOException,
                                               javax.xml.parsers.ParserConfigurationException,
                                               org.xml.sax.SAXException
The elementToString method. This method converts a given element to String.

Parameters:
aElement - - The element to be converted.
Returns:
String - The converted Element.
Throws:
java.io.IOException
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException

stringToElement

public static org.w3c.dom.Element stringToElement(java.lang.String anXMLNodeInStringFormat)
                                           throws java.io.IOException,
                                                  javax.xml.parsers.ParserConfigurationException,
                                                  org.xml.sax.SAXException
The stringToElement method. This method converts a given string to Element.

Parameters:
anXMLNodeInStringFormat - - The String to be formatted.
Returns:
Element - The converted string.
Throws:
java.io.IOException
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException

stringToNode

public static org.w3c.dom.Node stringToNode(java.lang.String anXMLNodeInStringFormat)
                                     throws java.io.IOException,
                                            javax.xml.parsers.ParserConfigurationException,
                                            org.xml.sax.SAXException
The stringToNode method. This method converts a given String to a Node.

Parameters:
anXMLNodeInStringFormat - - The String to be converted.
Returns:
Node - The converted string.
Throws:
java.io.IOException
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException

getEndpoint

public static java.lang.String getEndpoint(org.w3c.dom.Element gsr)
The getHandle method. This method returns a GSH givens a GSR

Returns:
String

getEndpoint

public static java.lang.String getEndpoint(org.w3c.dom.Element gsr,
                                           java.lang.String port)
The getEndpoint method. This method return the location value of a gsr

Returns:
String