Interface XMLPartFactory
-
- All Known Implementing Classes:
XMLPartFactoryImpl
public interface XMLPartFactory
XMLPartFactory Creates an XMLPart object. The two common patterns are: - Create an empty message for a specific protocol - Create a xmlPart sourced from OM (XMLStreamReader) 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 XMLPart
create(Protocol protocol)
create empty XMLPart of the specified protocolXMLPart
createFrom(SOAPEnvelope soapEnvelope)
create XMLPart from SOAPEnvelopeXMLPart
createFrom(XMLStreamReader reader, Protocol protocol)
create XMLPart from XMLStreamReaderXMLPart
createFrom(OMElement omElement, Protocol protocol)
create XMLPart from OMElement
-
-
-
Method Detail
-
createFrom
XMLPart createFrom(XMLStreamReader reader, Protocol protocol) throws XMLStreamException, WebServiceException
create XMLPart from XMLStreamReader- Parameters:
reader
- XMLStreamReaderprotocol
- (if null, the soap protocol is inferred from the namespace)- Throws:
MessageStreamException
XMLStreamException
WebServiceException
-
createFrom
XMLPart createFrom(OMElement omElement, Protocol protocol) throws XMLStreamException, WebServiceException
create XMLPart from OMElement- Parameters:
omElement
- OMElementprotocol
- (if null, the soap protocol is inferred from the namespace)- Throws:
WebServiceException
XMLStreamException
-
createFrom
XMLPart createFrom(SOAPEnvelope soapEnvelope) throws XMLStreamException, WebServiceException
create XMLPart from SOAPEnvelope- Parameters:
soapEnvelope
- SOAPEnvelope- Throws:
WebServiceException
XMLStreamException
-
create
XMLPart create(Protocol protocol) throws XMLStreamException, WebServiceException
create empty XMLPart of the specified protocol- Parameters:
protocol
-- Throws:
WebServiceException
XMLStreamException
-
-