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(javax.xml.soap.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
|
public MessageFactoryImpl()
public Message createFrom(javax.xml.stream.XMLStreamReader reader, Protocol protocol) throws javax.xml.stream.XMLStreamException, javax.xml.ws.WebServiceException
MessageFactorycreateFrom in interface MessageFactoryreader - XMLStreamReaderprotocol - (if null, the soap protocol is inferred from the namespace)javax.xml.stream.XMLStreamExceptionjavax.xml.ws.WebServiceExceptionpublic Message createFrom(org.apache.axiom.om.OMElement omElement, Protocol protocol) throws javax.xml.stream.XMLStreamException, javax.xml.ws.WebServiceException
MessageFactorycreateFrom in interface MessageFactoryomElement - OMElementprotocol - (if null, the soap protocol is inferred from the namespace)javax.xml.stream.XMLStreamExceptionjavax.xml.ws.WebServiceExceptionpublic Message create(Protocol protocol) throws javax.xml.stream.XMLStreamException, javax.xml.ws.WebServiceException
MessageFactorycreate in interface MessageFactoryjavax.xml.stream.XMLStreamExceptionjavax.xml.ws.WebServiceExceptionpublic Message createFrom(javax.xml.soap.SOAPMessage message) throws javax.xml.stream.XMLStreamException, javax.xml.ws.WebServiceException
MessageFactorycreateFrom in interface MessageFactoryjavax.xml.stream.XMLStreamExceptionjavax.xml.ws.WebServiceExceptionpublic Message createFrom(Block block, Object context, Protocol protocol) throws javax.xml.stream.XMLStreamException, javax.xml.ws.WebServiceException
MessageFactorycreateFrom in interface MessageFactorycontext - Associated Context or nullprotocol - (if null, the soap protocol is inferred from the namespace)javax.xml.stream.XMLStreamExceptionjavax.xml.ws.WebServiceExceptionCopyright © 2004–2017 The Apache Software Foundation. All rights reserved.