Class MessageFactoryImpl
- java.lang.Object
-
- org.apache.axis2.jaxws.message.impl.MessageFactoryImpl
-
- All Implemented Interfaces:
MessageFactory
public class MessageFactoryImpl extends Object implements MessageFactory
MessageFactoryImpl
-
-
Constructor Summary
Constructors Constructor Description MessageFactoryImpl()
Default Constructor required for Factory
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Message
create(Protocol protocol)
create empty Message of the specified protocolMessage
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 SOAPMessageMessage
createFrom(XMLStreamReader reader, Protocol protocol)
create Message with the xml from the XMLStreamReaderMessage
createFrom(OMElement omElement, Protocol protocol)
create Message with the xml from the OMElementMessage
createFrom(Block block, Object context, Protocol protocol)
create Message from a Block
-
-
-
Method Detail
-
createFrom
public Message createFrom(XMLStreamReader reader, Protocol protocol) throws XMLStreamException, WebServiceException
Description copied from interface:MessageFactory
create Message with the xml from the XMLStreamReader- Specified by:
createFrom
in interfaceMessageFactory
- Parameters:
reader
- XMLStreamReaderprotocol
- (if null, the soap protocol is inferred from the namespace)- Throws:
XMLStreamException
WebServiceException
-
createFrom
public Message createFrom(OMElement omElement, Protocol protocol) throws XMLStreamException, WebServiceException
Description copied from interface:MessageFactory
create Message with the xml from the OMElement- Specified by:
createFrom
in interfaceMessageFactory
- Parameters:
omElement
- OMElementprotocol
- (if null, the soap protocol is inferred from the namespace)- Throws:
XMLStreamException
WebServiceException
-
create
public Message create(Protocol protocol) throws XMLStreamException, WebServiceException
Description copied from interface:MessageFactory
create empty Message of the specified protocol- Specified by:
create
in interfaceMessageFactory
- Throws:
XMLStreamException
WebServiceException
-
createFrom
public Message createFrom(SOAPMessage message) throws 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 interfaceMessageFactory
- Throws:
XMLStreamException
WebServiceException
-
createFrom
public Message createFrom(Block block, Object context, Protocol protocol) throws XMLStreamException, WebServiceException
Description copied from interface:MessageFactory
create Message from a Block- Specified by:
createFrom
in interfaceMessageFactory
context
- Associated Context or nullprotocol
- (if null, the soap protocol is inferred from the namespace)- Throws:
XMLStreamException
WebServiceException
-
-