public class SAAJFactory extends Object
Constructor and Description |
---|
SAAJFactory() |
Modifier and Type | Method and Description |
---|---|
protected void |
addAttachmentsToSOAPMessage(javax.xml.soap.SOAPMessage msg,
Message message) |
static Message |
create(javax.xml.soap.SOAPMessage saaj)
Creates Message from SOAPMessage
|
Message |
createMessage(javax.xml.soap.SOAPMessage saaj)
Creates Message from SOAPMessage
|
javax.xml.soap.MessageFactory |
createMessageFactory(String saajFactoryString)
Creates a new
MessageFactory object that is an instance
of the specified implementation. |
javax.xml.soap.SOAPFactory |
createSOAPFactory(String saajFactoryString)
Creates a new
SOAPFactory object that is an instance of
the specified implementation, this method uses the SAAJMetaFactory to
locate the implementation class and create the SOAPFactory instance. |
static javax.xml.soap.MessageFactory |
getMessageFactory(String saajFactoryString)
Creates a new
MessageFactory object that is an instance
of the specified implementation. |
static javax.xml.soap.SOAPFactory |
getSOAPFactory(String saajFactoryString)
Creates a new
SOAPFactory object that is an instance of
the specified implementation, this method uses the SAAJMetaFactory to
locate the implementation class and create the SOAPFactory instance. |
static SAAJMessage |
read(Packet packet)
Reads the message within the Packet to a SAAJMessage.
|
static javax.xml.soap.SOAPMessage |
read(SOAPVersion soapVersion,
Message message)
Reads Message as SOAPMessage.
|
static javax.xml.soap.SOAPMessage |
read(SOAPVersion soapVersion,
Message message,
Packet packet)
Reads Message as SOAPMessage.
|
SAAJMessage |
readAsSAAJ(Packet p)
Reads the message within the Packet to a SAAJMessage.
|
javax.xml.soap.SOAPMessage |
readAsSOAPMessage(SOAPVersion soapVersion,
Message message)
Reads Message as SOAPMessage.
|
javax.xml.soap.SOAPMessage |
readAsSOAPMessage(SOAPVersion soapVersion,
Message message,
Packet packet)
Reads Message as SOAPMessage.
|
public static javax.xml.soap.MessageFactory getMessageFactory(String saajFactoryString) throws javax.xml.soap.SOAPException
MessageFactory
object that is an instance
of the specified implementation. May be a dynamic message factory,
a SOAP 1.1 message factory, or a SOAP 1.2 message factory. A dynamic
message factory creates messages based on the MIME headers specified
as arguments to the createMessage
method.
This method uses the SAAJMetaFactory to locate the implementation class
and create the MessageFactory instance.protocol
- a string constant representing the class of the
specified message factory implementation. May be
either DYNAMIC_SOAP_PROTOCOL
,
DEFAULT_SOAP_PROTOCOL
(which is the same
as) SOAP_1_1_PROTOCOL
, or
SOAP_1_2_PROTOCOL
.MessageFactory
javax.xml.soap.SOAPException
- if there was an error in creating the
specified implementation of MessageFactory
.SAAJMetaFactory
public static javax.xml.soap.SOAPFactory getSOAPFactory(String saajFactoryString) throws javax.xml.soap.SOAPException
SOAPFactory
object that is an instance of
the specified implementation, this method uses the SAAJMetaFactory to
locate the implementation class and create the SOAPFactory instance.protocol
- a string constant representing the protocol of the
specified SOAP factory implementation. May be
either DYNAMIC_SOAP_PROTOCOL
,
DEFAULT_SOAP_PROTOCOL
(which is the same
as) SOAP_1_1_PROTOCOL
, or
SOAP_1_2_PROTOCOL
.SOAPFactory
javax.xml.soap.SOAPException
- if there was an error creating the
specified SOAPFactory
SAAJMetaFactory
public static Message create(javax.xml.soap.SOAPMessage saaj)
saaj
- SOAPMessagepublic static javax.xml.soap.SOAPMessage read(SOAPVersion soapVersion, Message message) throws javax.xml.soap.SOAPException
soapVersion
- SOAP versionmessage
- Messagejavax.xml.soap.SOAPException
- if SAAJ processing failspublic static javax.xml.soap.SOAPMessage read(SOAPVersion soapVersion, Message message, Packet packet) throws javax.xml.soap.SOAPException
soapVersion
- SOAP versionmessage
- Messagepacket
- The packet that owns the Messagejavax.xml.soap.SOAPException
- if SAAJ processing failspublic static SAAJMessage read(Packet packet) throws javax.xml.soap.SOAPException
packet
- Packetjavax.xml.soap.SOAPException
- if SAAJ processing failspublic SAAJMessage readAsSAAJ(Packet p) throws javax.xml.soap.SOAPException
packet
- Packetjavax.xml.soap.SOAPException
- if SAAJ processing failspublic javax.xml.soap.MessageFactory createMessageFactory(String saajFactoryString) throws javax.xml.soap.SOAPException
MessageFactory
object that is an instance
of the specified implementation. May be a dynamic message factory,
a SOAP 1.1 message factory, or a SOAP 1.2 message factory. A dynamic
message factory creates messages based on the MIME headers specified
as arguments to the createMessage
method.
This method uses the SAAJMetaFactory to locate the implementation class
and create the MessageFactory instance.protocol
- a string constant representing the class of the
specified message factory implementation. May be
either DYNAMIC_SOAP_PROTOCOL
,
DEFAULT_SOAP_PROTOCOL
(which is the same
as) SOAP_1_1_PROTOCOL
, or
SOAP_1_2_PROTOCOL
.MessageFactory
javax.xml.soap.SOAPException
- if there was an error in creating the
specified implementation of MessageFactory
.SAAJMetaFactory
public javax.xml.soap.SOAPFactory createSOAPFactory(String saajFactoryString) throws javax.xml.soap.SOAPException
SOAPFactory
object that is an instance of
the specified implementation, this method uses the SAAJMetaFactory to
locate the implementation class and create the SOAPFactory instance.protocol
- a string constant representing the protocol of the
specified SOAP factory implementation. May be
either DYNAMIC_SOAP_PROTOCOL
,
DEFAULT_SOAP_PROTOCOL
(which is the same
as) SOAP_1_1_PROTOCOL
, or
SOAP_1_2_PROTOCOL
.SOAPFactory
javax.xml.soap.SOAPException
- if there was an error creating the
specified SOAPFactory
SAAJMetaFactory
public Message createMessage(javax.xml.soap.SOAPMessage saaj)
saaj
- SOAPMessagepublic javax.xml.soap.SOAPMessage readAsSOAPMessage(SOAPVersion soapVersion, Message message) throws javax.xml.soap.SOAPException
soapVersion
- SOAP versionmessage
- Messagejavax.xml.soap.SOAPException
- if SAAJ processing failsprotected void addAttachmentsToSOAPMessage(javax.xml.soap.SOAPMessage msg, Message message)
public javax.xml.soap.SOAPMessage readAsSOAPMessage(SOAPVersion soapVersion, Message message, Packet packet) throws javax.xml.soap.SOAPException
soapVersion
- SOAP versionmessage
- Messagejavax.xml.soap.SOAPException
- if SAAJ processing failsCopyright (c) 1997-2012 Oracle and/or its affiliates. All rights reserved.