com.sun.ws.management.enumeration
Class EnumerationUtility

java.lang.Object
  extended by com.sun.ws.management.enumeration.EnumerationUtility

public class EnumerationUtility
extends java.lang.Object

This class is meant to provide general utility functionality for Enumeration message instances and all of their related extensions. To enable messages ready for submission, Management instances are returned from some of the methods below. The following default values are defined when newer values have not been supplied: UID_SCHEME = uuid: DEFAULT_TIMEOUT = 30000 ACTION = Enumeration.ENUMERATE_ACTION_URI FILTER_TYPE.DIALECT = XPATH REPLY_TO = Anonymous URI

Author:
Simeon Pinder

Constructor Summary
EnumerationUtility()
           
 
Method Summary
static Enumeration buildMessage(Enumeration existingEnum, EnumerationMessageValues settings)
           
static java.util.List<EnumerationItem> extractEnumeratedValues(Addressing responseMessage)
           
static org.w3c.dom.Element[] extractItemsAsElementArray(Enumeration pullResponse)
          Method attempts to extract each Item, from a pullResponse object as an array of Elements.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EnumerationUtility

public EnumerationUtility()
Method Detail

buildMessage

public static Enumeration buildMessage(Enumeration existingEnum,
                                       EnumerationMessageValues settings)
                                throws javax.xml.soap.SOAPException,
                                       javax.xml.bind.JAXBException,
                                       javax.xml.datatype.DatatypeConfigurationException
Throws:
javax.xml.soap.SOAPException
javax.xml.bind.JAXBException
javax.xml.datatype.DatatypeConfigurationException

extractEnumeratedValues

public static java.util.List<EnumerationItem> extractEnumeratedValues(Addressing responseMessage)
                                                               throws javax.xml.soap.SOAPException,
                                                                      javax.xml.bind.JAXBException
Throws:
javax.xml.soap.SOAPException
javax.xml.bind.JAXBException

extractItemsAsElementArray

public static org.w3c.dom.Element[] extractItemsAsElementArray(Enumeration pullResponse)
                                                        throws javax.xml.soap.SOAPException,
                                                               javax.xml.bind.JAXBException
Method attempts to extract each Item, from a pullResponse object as an array of Elements. For Items listed in duplicate(ObjectAndEpr), then this method attempts to locate each element and an associated EPR as well. An EPR is an open ended element and the Element[] array list may not be easy to evaluate. Use this method at your own discretion.

Parameters:
pullResponse - encapsulates the Enumeration response received.
Throws:
javax.xml.soap.SOAPException
javax.xml.bind.JAXBException