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, newInstance
public MessageFactoryImpl()
public MessageFactoryImpl(String protocol) throws SOAPException
SOAPException
public String getEnvNamespace()
public void setEnvNamespace(String envelopeURI)
public Style getStyle()
public void setStyle(Style style)
public SOAPMessage createMessage() throws SOAPException
createMessage
in class MessageFactory
SOAPException
- if a SOAP error occurspublic SOAPMessage createMessage(MimeHeaders mimeHeaders, InputStream ins) throws IOException, SOAPException
createMessage
in class MessageFactory
mimeHeaders
- 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
IOException
SOAPException
Copyright © 2018 JBoss by Red Hat. All rights reserved.