com.sun.ws.management.server
Class BaseSupport

java.lang.Object
  extended by com.sun.ws.management.server.BaseSupport
Direct Known Subclasses:
EnumerationSupport, EventingSupport

public class BaseSupport
extends java.lang.Object


Field Summary
static java.util.Map<java.util.UUID,BaseContext> contextMap
           
 
Method Summary
static void addSupportedFilterDialect(java.lang.String dialect, FilterFactory filterFactory)
          Add a Filtering support for a specific dialect.
static Filter createFilter(java.lang.String dialect, java.util.List content, NamespaceMap nsMap)
           
static javax.xml.bind.JAXBElement<MixedDataType> createXmlFragment(java.util.List<org.w3c.dom.Node> nodes)
          Create a JAXBElement object that is a wsman:XmlFragment from a list of XML Nodes.
static javax.xml.bind.JAXBElement<MixedDataType> createXmlFragment(org.w3c.dom.NodeList nodes)
          Create a JAXBElement object that is a wsman:XmlFragment from a NodeList
static java.lang.String[] getSupportedDialects()
          Supported dialects, returned as Fault Detail when the dialect is not supported.
static boolean isSupportedDialect(java.lang.String dialect)
          Determines if the passed dialect is a supported dialect
static void stopTimer()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

contextMap

public static final java.util.Map<java.util.UUID,BaseContext> contextMap
Method Detail

addSupportedFilterDialect

public static void addSupportedFilterDialect(java.lang.String dialect,
                                             FilterFactory filterFactory)
                                      throws java.lang.Exception
Add a Filtering support for a specific dialect.

Parameters:
dialect - Filter dialect
filterFactory - The Filter Factory that creates Filter for requests relying on the passed dialect.
Throws:
java.lang.Exception - If the filter is already supported.

isSupportedDialect

public static boolean isSupportedDialect(java.lang.String dialect)
Determines if the passed dialect is a supported dialect

Parameters:
dialect - The dialect to check for support.
Returns:
true if it is a supported dialect (or if dialect is null == default), else false

getSupportedDialects

public static java.lang.String[] getSupportedDialects()
Supported dialects, returned as Fault Detail when the dialect is not supported.

Returns:
An array of supported dialects.

createFilter

public static Filter createFilter(java.lang.String dialect,
                                  java.util.List content,
                                  NamespaceMap nsMap)
                           throws CannotProcessFilterFault,
                                  FilteringRequestedUnavailableFault
Throws:
CannotProcessFilterFault
FilteringRequestedUnavailableFault

createXmlFragment

public static javax.xml.bind.JAXBElement<MixedDataType> createXmlFragment(java.util.List<org.w3c.dom.Node> nodes)
Create a JAXBElement object that is a wsman:XmlFragment from a list of XML Nodes.

Parameters:
nodes - Nodes to be inserted into the XmlFragment element.
Returns:
XmlFragment JAXBElement object.

createXmlFragment

public static javax.xml.bind.JAXBElement<MixedDataType> createXmlFragment(org.w3c.dom.NodeList nodes)
Create a JAXBElement object that is a wsman:XmlFragment from a NodeList

Parameters:
nodes - Nodes to be inserted into the XmlFragment element.
Returns:
XmlFragment JAXBElement object.

stopTimer

public static void stopTimer()