org.apache.axis2.jaxws.message.impl
Class MessageFactoryImpl

java.lang.Object
  extended by org.apache.axis2.jaxws.message.impl.MessageFactoryImpl
All Implemented Interfaces:
MessageFactory

public class MessageFactoryImpl
extends java.lang.Object
implements MessageFactory

MessageFactoryImpl


Constructor Summary
MessageFactoryImpl()
          Default Constructor required for Factory
 
Method Summary
 Message create(Protocol protocol)
          create empty Message of the specified protocol
 Message createFrom(Block block, java.lang.Object context, Protocol protocol)
          create Message from a Block
 Message createFrom(org.apache.axiom.om.OMElement omElement, Protocol protocol)
          create Message with the xml from the OMElement
 Message createFrom(SOAPMessage message)
          create Message from SOAPMessage The xml and attachments from the SOAPMessage are used to populate the new Message The protocol is inferred from the SOAPMessage
 Message createFrom(javax.xml.stream.XMLStreamReader reader, Protocol protocol)
          create Message with the xml from the XMLStreamReader
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessageFactoryImpl

public MessageFactoryImpl()
Default Constructor required for Factory

Method Detail

createFrom

public Message createFrom(javax.xml.stream.XMLStreamReader reader,
                          Protocol protocol)
                   throws javax.xml.stream.XMLStreamException,
                          WebServiceException
Description copied from interface: MessageFactory
create Message with the xml from the XMLStreamReader

Specified by:
createFrom in interface MessageFactory
Parameters:
reader - XMLStreamReader
protocol - (if null, the soap protocol is inferred from the namespace)
Throws:
javax.xml.stream.XMLStreamException
WebServiceException

createFrom

public Message createFrom(org.apache.axiom.om.OMElement omElement,
                          Protocol protocol)
                   throws javax.xml.stream.XMLStreamException,
                          WebServiceException
Description copied from interface: MessageFactory
create Message with the xml from the OMElement

Specified by:
createFrom in interface MessageFactory
Parameters:
omElement - OMElement
protocol - (if null, the soap protocol is inferred from the namespace)
Throws:
javax.xml.stream.XMLStreamException
WebServiceException

create

public Message create(Protocol protocol)
               throws javax.xml.stream.XMLStreamException,
                      WebServiceException
Description copied from interface: MessageFactory
create empty Message of the specified protocol

Specified by:
create in interface MessageFactory
Throws:
javax.xml.stream.XMLStreamException
WebServiceException

createFrom

public Message createFrom(SOAPMessage message)
                   throws javax.xml.stream.XMLStreamException,
                          WebServiceException
Description copied from interface: MessageFactory
create Message from SOAPMessage The xml and attachments from the SOAPMessage are used to populate the new Message The protocol is inferred from the SOAPMessage

Specified by:
createFrom in interface MessageFactory
Throws:
javax.xml.stream.XMLStreamException
WebServiceException

createFrom

public Message createFrom(Block block,
                          java.lang.Object context,
                          Protocol protocol)
                   throws javax.xml.stream.XMLStreamException,
                          WebServiceException
Description copied from interface: MessageFactory
create Message from a Block

Specified by:
createFrom in interface MessageFactory
context - Associated Context or null
protocol - (if null, the soap protocol is inferred from the namespace)
Throws:
javax.xml.stream.XMLStreamException
WebServiceException


Copyright © 2007 Apache Web Services Project. All Rights Reserved.