public class MessageFactoryImpl extends Object implements MessageFactory
Constructor and Description |
---|
MessageFactoryImpl()
Default Constructor required for Factory
|
Modifier and Type | Method and Description |
---|---|
Message |
create(Protocol protocol)
create empty Message of the specified protocol
|
Message |
createFrom(Block block,
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(XMLStreamReader reader,
Protocol protocol)
create Message with the xml from the XMLStreamReader
|
public MessageFactoryImpl()
public Message createFrom(XMLStreamReader reader, Protocol protocol) throws XMLStreamException, WebServiceException
MessageFactory
createFrom
in interface MessageFactory
reader
- XMLStreamReaderprotocol
- (if null, the soap protocol is inferred from the namespace)XMLStreamException
WebServiceException
public Message createFrom(org.apache.axiom.om.OMElement omElement, Protocol protocol) throws XMLStreamException, WebServiceException
MessageFactory
createFrom
in interface MessageFactory
omElement
- OMElementprotocol
- (if null, the soap protocol is inferred from the namespace)XMLStreamException
WebServiceException
public Message create(Protocol protocol) throws XMLStreamException, WebServiceException
MessageFactory
create
in interface MessageFactory
XMLStreamException
WebServiceException
public Message createFrom(SOAPMessage message) throws XMLStreamException, WebServiceException
MessageFactory
createFrom
in interface MessageFactory
XMLStreamException
WebServiceException
public Message createFrom(Block block, Object context, Protocol protocol) throws XMLStreamException, WebServiceException
MessageFactory
createFrom
in interface MessageFactory
context
- Associated Context or nullprotocol
- (if null, the soap protocol is inferred from the namespace)XMLStreamException
WebServiceException
Copyright © 2004-2015 The Apache Software Foundation. All Rights Reserved.