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 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 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:MessageFactorycreate Message with the xml from the XMLStreamReader- Specified by:
createFromin interfaceMessageFactory- Parameters:
reader- XMLStreamReaderprotocol- (if null, the soap protocol is inferred from the namespace)- Throws:
XMLStreamExceptionWebServiceException
-
createFrom
public Message createFrom(OMElement omElement, Protocol protocol) throws XMLStreamException, WebServiceException
Description copied from interface:MessageFactorycreate Message with the xml from the OMElement- Specified by:
createFromin interfaceMessageFactory- Parameters:
omElement- OMElementprotocol- (if null, the soap protocol is inferred from the namespace)- Throws:
XMLStreamExceptionWebServiceException
-
create
public Message create(Protocol protocol) throws XMLStreamException, WebServiceException
Description copied from interface:MessageFactorycreate empty Message of the specified protocol- Specified by:
createin interfaceMessageFactory- Throws:
XMLStreamExceptionWebServiceException
-
createFrom
public Message createFrom(SOAPMessage message) throws XMLStreamException, WebServiceException
Description copied from interface:MessageFactorycreate 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:
createFromin interfaceMessageFactory- Throws:
XMLStreamExceptionWebServiceException
-
createFrom
public Message createFrom(Block block, Object context, Protocol protocol) throws XMLStreamException, WebServiceException
Description copied from interface:MessageFactorycreate Message from a Block- Specified by:
createFromin interfaceMessageFactorycontext- Associated Context or nullprotocol- (if null, the soap protocol is inferred from the namespace)- Throws:
XMLStreamExceptionWebServiceException
-
-