com.sun.ws.management
Class Message

java.lang.Object
  extended by com.sun.ws.management.Message
Direct Known Subclasses:
SOAP

public abstract class Message
extends java.lang.Object


Field Summary
static java.lang.String COLON
           
 
Constructor Summary
Message()
           
Message(java.io.InputStream is)
           
Message(Message message)
           
Message(javax.xml.soap.SOAPMessage message)
           
 
Method Summary
 void addNamespaceDeclarations(java.util.Map<java.lang.String,java.lang.String> ns)
           
static org.w3c.dom.Element createElement(org.w3c.dom.Document doc, javax.xml.namespace.QName qname)
           
 javax.xml.soap.SOAPBody getBody()
           
 ContentType getContentType()
           
static javax.xml.parsers.DocumentBuilder getDocumentBuilder()
           
 javax.xml.soap.SOAPEnvelope getEnvelope()
           
 javax.xml.soap.SOAPHeader getHeader()
           
 javax.xml.soap.SOAPMessage getMessage()
           
static org.w3c.dom.Document newDocument()
           
 void prettyPrint(java.io.OutputStream os)
           
static void setAttribute(org.w3c.dom.Element element, javax.xml.namespace.QName qname, java.lang.String value)
           
 void setContentType(ContentType ct)
           
 java.lang.String toString()
           
abstract  void validate()
           
 void writeTo(java.io.OutputStream os)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

COLON

public static final java.lang.String COLON
See Also:
Constant Field Values
Constructor Detail

Message

public Message()
        throws javax.xml.soap.SOAPException
Throws:
javax.xml.soap.SOAPException

Message

public Message(Message message)
        throws javax.xml.soap.SOAPException
Throws:
javax.xml.soap.SOAPException

Message

public Message(java.io.InputStream is)
        throws javax.xml.soap.SOAPException,
               java.io.IOException
Throws:
javax.xml.soap.SOAPException
java.io.IOException

Message

public Message(javax.xml.soap.SOAPMessage message)
        throws javax.xml.soap.SOAPException
Throws:
javax.xml.soap.SOAPException
Method Detail

newDocument

public static org.w3c.dom.Document newDocument()

getDocumentBuilder

public static javax.xml.parsers.DocumentBuilder getDocumentBuilder()

createElement

public static org.w3c.dom.Element createElement(org.w3c.dom.Document doc,
                                                javax.xml.namespace.QName qname)

setAttribute

public static void setAttribute(org.w3c.dom.Element element,
                                javax.xml.namespace.QName qname,
                                java.lang.String value)

getContentType

public ContentType getContentType()

setContentType

public void setContentType(ContentType ct)
                    throws javax.xml.soap.SOAPException
Throws:
javax.xml.soap.SOAPException

validate

public abstract void validate()
                       throws javax.xml.soap.SOAPException,
                              javax.xml.bind.JAXBException,
                              FaultException
Throws:
javax.xml.soap.SOAPException
javax.xml.bind.JAXBException
FaultException

writeTo

public void writeTo(java.io.OutputStream os)
             throws javax.xml.soap.SOAPException,
                    java.io.IOException
Throws:
javax.xml.soap.SOAPException
java.io.IOException

prettyPrint

public void prettyPrint(java.io.OutputStream os)
                 throws javax.xml.soap.SOAPException,
                        javax.xml.parsers.ParserConfigurationException,
                        org.xml.sax.SAXException,
                        java.io.IOException
Throws:
javax.xml.soap.SOAPException
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
java.io.IOException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

addNamespaceDeclarations

public void addNamespaceDeclarations(java.util.Map<java.lang.String,java.lang.String> ns)
                              throws javax.xml.soap.SOAPException
Throws:
javax.xml.soap.SOAPException

getMessage

public javax.xml.soap.SOAPMessage getMessage()

getEnvelope

public javax.xml.soap.SOAPEnvelope getEnvelope()

getHeader

public javax.xml.soap.SOAPHeader getHeader()

getBody

public javax.xml.soap.SOAPBody getBody()