Class MessageFactoryImpl
java.lang.Object
org.apache.axis2.jaxws.message.impl.MessageFactoryImpl
- All Implemented Interfaces:
MessageFactory
MessageFactoryImpl
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate empty Message of the specified protocolcreateFrom(jakarta.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 SOAPMessagecreateFrom(XMLStreamReader reader, Protocol protocol) create Message with the xml from the XMLStreamReadercreateFrom(org.apache.axiom.om.OMElement omElement, Protocol protocol) create Message with the xml from the OMElementcreateFrom(Block block, Object context, Protocol protocol) create Message from a Block
-
Constructor Details
-
MessageFactoryImpl
public MessageFactoryImpl()Default Constructor required for Factory
-
-
Method Details
-
createFrom
public Message createFrom(XMLStreamReader reader, Protocol protocol) throws XMLStreamException, jakarta.xml.ws.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:
XMLStreamExceptionjakarta.xml.ws.WebServiceException
-
createFrom
public Message createFrom(org.apache.axiom.om.OMElement omElement, Protocol protocol) throws XMLStreamException, jakarta.xml.ws.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:
XMLStreamExceptionjakarta.xml.ws.WebServiceException
-
create
public Message create(Protocol protocol) throws XMLStreamException, jakarta.xml.ws.WebServiceException Description copied from interface:MessageFactorycreate empty Message of the specified protocol- Specified by:
createin interfaceMessageFactory- Throws:
XMLStreamExceptionjakarta.xml.ws.WebServiceException
-
createFrom
public Message createFrom(jakarta.xml.soap.SOAPMessage message) throws XMLStreamException, jakarta.xml.ws.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:
XMLStreamExceptionjakarta.xml.ws.WebServiceException
-
createFrom
public Message createFrom(Block block, Object context, Protocol protocol) throws XMLStreamException, jakarta.xml.ws.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:
XMLStreamExceptionjakarta.xml.ws.WebServiceException
-