com.sun.xml.messaging.jaxm.ebxml
Class EbXMLMessageFactoryImpl

java.lang.Object
  extended byjavax.xml.soap.MessageFactory
      extended bycom.sun.xml.messaging.jaxm.ebxml.EbXMLMessageFactoryImpl
All Implemented Interfaces:
java.io.Serializable

public class EbXMLMessageFactoryImpl
extends javax.xml.soap.MessageFactory
implements java.io.Serializable

A factory for creating EbXML messages. This class is instantiated by the ProviderConnection when the profile being used is ebxml.

See Also:
Serialized Form

Constructor Summary
EbXMLMessageFactoryImpl()
           
 
Method Summary
 javax.xml.soap.SOAPMessage createMessage()
          Creates an instance of the EbXMLMessageImpl.
 javax.xml.soap.SOAPMessage createMessage(javax.xml.soap.MimeHeaders headers, java.io.InputStream is)
          Creates an ebxml message from the given mime headers and InputStream.
 javax.xml.soap.SOAPMessage createMessage(javax.xml.soap.SOAPMessage msg)
           
 
Methods inherited from class javax.xml.soap.MessageFactory
newInstance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EbXMLMessageFactoryImpl

public EbXMLMessageFactoryImpl()
Method Detail

createMessage

public javax.xml.soap.SOAPMessage createMessage()
                                         throws javax.xml.soap.SOAPException
Creates an instance of the EbXMLMessageImpl.

Returns:
SOAPMessage an instance of EbXMLMessageImpl is returned.
Throws:
javax.xml.soap.SOAPException - is thrown when there is a problem in creating the message for ebxml profile.

createMessage

public javax.xml.soap.SOAPMessage createMessage(javax.xml.soap.MimeHeaders headers,
                                                java.io.InputStream is)
                                         throws java.io.IOException,
                                                javax.xml.soap.SOAPException
Creates an ebxml message from the given mime headers and InputStream.

Parameters:
headers - The mime headers for the message.
Throws:
javax.xml.soap.SOAPException - is thrown when there is a problem in creating the message for ebxml profile.
java.io.IOException - is thrown when there is a problem in the InputStream.

createMessage

public javax.xml.soap.SOAPMessage createMessage(javax.xml.soap.SOAPMessage msg)
                                         throws java.io.IOException,
                                                javax.xml.soap.SOAPException
Throws:
java.io.IOException
javax.xml.soap.SOAPException