站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 4.0.1 sp1 jaxrpc API Documentation 英文版文档

MessageFactoryImpl (JAXRPC API) - JBoss 4.0.1 sp1 jaxrpc API Documentation 英文版文档


org.apache.axis.soap
Class MessageFactoryImpl

java.lang.Object
  extended byjavax.xml.soap.MessageFactory
      extended byorg.apache.axis.soap.MessageFactoryImpl

public class MessageFactoryImpl
extends javax.xml.soap.MessageFactory

Message Factory implementation

Author:
Davanum Srinivas (dims@yahoo.com)

Constructor Summary
MessageFactoryImpl()
           
 
Method Summary
 javax.xml.soap.SOAPMessage createMessage()
          Creates a new SOAPMessage object with the default SOAPPart, SOAPEnvelope, SOAPBody, and SOAPHeader objects.
 javax.xml.soap.SOAPMessage createMessage(javax.xml.soap.MimeHeaders mimeheaders, InputStream inputstream)
          Internalizes the contents of the given InputStream object into a new SOAPMessage object and returns the SOAPMessage object.
 
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

MessageFactoryImpl

public MessageFactoryImpl()
Method Detail

createMessage

public javax.xml.soap.SOAPMessage createMessage()
                                         throws javax.xml.soap.SOAPException
Creates a new SOAPMessage object with the default SOAPPart, SOAPEnvelope, SOAPBody, and SOAPHeader objects. Profile-specific message factories can choose to prepopulate the SOAPMessage object with profile-specific headers.

Content can be added to this message's SOAPPart object, and the message can be sent "as is" when a message containing only a SOAP part is sufficient. Otherwise, the SOAPMessage object needs to create one or more AttachmentPart objects and add them to itself. Any content that is not in XML format must be in an AttachmentPart object.

Returns:
a new SOAPMessage object
Throws:
javax.xml.soap.SOAPException - if a SOAP error occurs

createMessage

public javax.xml.soap.SOAPMessage createMessage(javax.xml.soap.MimeHeaders mimeheaders,
                                                InputStream inputstream)
                                         throws IOException,
                                                javax.xml.soap.SOAPException
Internalizes the contents of the given InputStream object into a new SOAPMessage object and returns the SOAPMessage object.

Parameters:
mimeheaders - the transport-specific headers passed to the message in a transport-independent fashion for creation of the message
inputstream - the InputStream object that contains the data for a message
Returns:
a new SOAPMessage object containing the data from the given InputStream object
Throws:
IOException - if there is a problem in reading data from the input stream
javax.xml.soap.SOAPException - if the message is invalid


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.