Interface MessageFactory
-
- All Known Implementing Classes:
MessageFactoryImpl
public interface MessageFactoryMessageFactory Creates a Message object. The common patterns are: - Create an empty message for a specific protocol - Create a message with the xml sourced from OM (XMLStreamReader) - Create a message (xml + attachments) from a SOAPMessage The FactoryRegistry should be used to get access to the Factory- See Also:
FactoryRegistry
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Messagecreate(Protocol protocol)create empty Message of the specified protocolMessagecreateFrom(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 SOAPMessageMessagecreateFrom(XMLStreamReader reader, Protocol protocol)create Message with the xml from the XMLStreamReaderMessagecreateFrom(OMElement omElement, Protocol protocol)create Message with the xml from the OMElementMessagecreateFrom(Block other, Object context, Protocol protocol)create Message from a Block
-
-
-
Method Detail
-
createFrom
Message createFrom(XMLStreamReader reader, Protocol protocol) throws XMLStreamException, WebServiceException
create Message with the xml from the XMLStreamReader- Parameters:
reader- XMLStreamReaderprotocol- (if null, the soap protocol is inferred from the namespace)- Throws:
XMLStreamExceptionWebServiceException
-
createFrom
Message createFrom(OMElement omElement, Protocol protocol) throws XMLStreamException, WebServiceException
create Message with the xml from the OMElement- Parameters:
omElement- OMElementprotocol- (if null, the soap protocol is inferred from the namespace)- Throws:
XMLStreamExceptionWebServiceException
-
createFrom
Message createFrom(Block other, Object context, Protocol protocol) throws XMLStreamException, WebServiceException
create Message from a Block- Parameters:
block-context- Associated Context or nullprotocol- (if null, the soap protocol is inferred from the namespace)- Throws:
XMLStreamExceptionWebServiceException
-
createFrom
Message createFrom(SOAPMessage message) throws XMLStreamException, WebServiceException
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- Parameters:
SOAPMessage-- Throws:
XMLStreamExceptionWebServiceException
-
create
Message create(Protocol protocol) throws XMLStreamException, WebServiceException
create empty Message of the specified protocol- Parameters:
protocol-- Throws:
XMLStreamExceptionWebServiceException
-
-