public class MessageFactoryImpl extends MessageFactory
| Constructor and Description |
|---|
MessageFactoryImpl() |
MessageFactoryImpl(String protocol) |
| Modifier and Type | Method and Description |
|---|---|
SOAPMessage |
createMessage()
Creates a new SOAPMessage object with the default SOAPPart, SOAPEnvelope,
SOAPBody, and SOAPHeader objects.
|
SOAPMessage |
createMessage(MimeHeaders mimeHeaders,
InputStream ins)
Internalizes the contents of the given InputStream object into a new
SOAPMessage object and returns the SOAPMessage object.
|
SOAPMessage |
createMessage(MimeHeaders mimeHeaders,
InputStream inputStream,
boolean ignoreParseError) |
String |
getEnvNamespace()
Get the SOAP envelope URI this factory will use when creating envelopes.
|
Style |
getStyle()
Get the Style this message factory will use
|
void |
setEnvNamespace(String envelopeURI)
Set the SOAP envelope URI this factory will use when creating envelopes.
|
void |
setStyle(Style style) |
newInstance, newInstancepublic MessageFactoryImpl()
public MessageFactoryImpl(String protocol) throws SOAPException
SOAPExceptionpublic String getEnvNamespace()
public void setEnvNamespace(String envelopeURI)
public Style getStyle()
public void setStyle(Style style)
public SOAPMessage createMessage() throws SOAPException
createMessage in class MessageFactorySOAPException - if a SOAP error occurspublic SOAPMessage createMessage(MimeHeaders mimeHeaders, InputStream ins) throws IOException, SOAPException
createMessage in class MessageFactorymimeHeaders - the transport-specific headers passed to the message in a
transport-independent fashion for creation of the messageins - the InputStream object that contains the data for a messageIOException - if there is a problem in reading data from the input streamSOAPException - if the message is invalidpublic SOAPMessage createMessage(MimeHeaders mimeHeaders, InputStream inputStream, boolean ignoreParseError) throws IOException, SOAPException
IOExceptionSOAPExceptionCopyright © 2013 JBoss, by Red Hat. All Rights Reserved.