|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MessageFactory
MessageFactory
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
FactoryRegistry
Method Summary | |
---|---|
Message |
create(Protocol protocol)
create empty Message of the specified protocol |
Message |
createFrom(Block other,
java.lang.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(javax.xml.stream.XMLStreamReader reader,
Protocol protocol)
create Message with the xml from the XMLStreamReader |
Method Detail |
---|
Message createFrom(javax.xml.stream.XMLStreamReader reader, Protocol protocol) throws javax.xml.stream.XMLStreamException, WebServiceException
reader
- XMLStreamReaderprotocol
- (if null, the soap protocol is inferred from the namespace)
javax.xml.stream.XMLStreamException
WebServiceException
Message createFrom(org.apache.axiom.om.OMElement omElement, Protocol protocol) throws javax.xml.stream.XMLStreamException, WebServiceException
omElement
- OMElementprotocol
- (if null, the soap protocol is inferred from the namespace)
javax.xml.stream.XMLStreamException
WebServiceException
Message createFrom(Block other, java.lang.Object context, Protocol protocol) throws javax.xml.stream.XMLStreamException, WebServiceException
block
- context
- Associated Context or nullprotocol
- (if null, the soap protocol is inferred from the namespace)
javax.xml.stream.XMLStreamException
WebServiceException
Message createFrom(SOAPMessage message) throws javax.xml.stream.XMLStreamException, WebServiceException
SOAPMessage
-
XMLStreamException,
- WebServiceException
javax.xml.stream.XMLStreamException
WebServiceException
Message create(Protocol protocol) throws javax.xml.stream.XMLStreamException, WebServiceException
protocol
-
javax.xml.stream.XMLStreamException
WebServiceException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |