|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.xml.ws.api.message.saaj.SAAJFactory
public class SAAJFactory
Factory SPI for SAAJ implementations
| Constructor Summary | |
|---|---|
SAAJFactory()
|
|
| Method Summary | |
|---|---|
protected static void |
addAttachmentsToSOAPMessage(SOAPMessage msg,
Message message)
|
static Message |
create(SOAPMessage saaj)
Creates Message from SOAPMessage |
Message |
createMessage(SOAPMessage saaj)
Creates Message from SOAPMessage |
MessageFactory |
createMessageFactory(String protocol)
Creates a new MessageFactory object that is an instance
of the specified implementation. |
SOAPFactory |
createSOAPFactory(String protocol)
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 MessageFactory |
getMessageFactory(String protocol)
Creates a new MessageFactory object that is an instance
of the specified implementation. |
static SOAPFactory |
getSOAPFactory(String protocol)
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 SOAPMessage |
read(SOAPVersion soapVersion,
Message message)
Reads Message as SOAPMessage. |
static SOAPMessage |
read(SOAPVersion soapVersion,
Message message,
Packet packet)
Reads Message as SOAPMessage. |
SAAJMessage |
readAsSAAJ(Packet packet)
Reads the message within the Packet to a SAAJMessage. |
SOAPMessage |
readAsSOAPMessage(SOAPVersion soapVersion,
Message message)
Reads Message as SOAPMessage. |
SOAPMessage |
readAsSOAPMessage(SOAPVersion soapVersion,
Message message,
Packet packet)
Reads Message as SOAPMessage. |
SOAPMessage |
readAsSOAPMessageSax2Dom(SOAPVersion soapVersion,
Message message)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SAAJFactory()
| Method Detail |
|---|
public static MessageFactory getMessageFactory(String protocol)
throws 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
SOAPException - if there was an error in creating the
specified implementation of MessageFactory.SAAJMetaFactory
public static SOAPFactory getSOAPFactory(String protocol)
throws 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
SOAPException - if there was an error creating the
specified SOAPFactorySAAJMetaFactorypublic static Message create(SOAPMessage saaj)
saaj - SOAPMessage
public static SOAPMessage read(SOAPVersion soapVersion,
Message message)
throws SOAPException
soapVersion - SOAP versionmessage - Message
SOAPException - if SAAJ processing fails
public static SOAPMessage read(SOAPVersion soapVersion,
Message message,
Packet packet)
throws SOAPException
soapVersion - SOAP versionmessage - Messagepacket - The packet that owns the Message
SOAPException - if SAAJ processing fails
public static SAAJMessage read(Packet packet)
throws SOAPException
packet - Packet
SOAPException - if SAAJ processing fails
public SAAJMessage readAsSAAJ(Packet packet)
throws SOAPException
packet - Packet
SOAPException - if SAAJ processing fails
public MessageFactory createMessageFactory(String protocol)
throws 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
SOAPException - if there was an error in creating the
specified implementation of MessageFactory.SAAJMetaFactory
public SOAPFactory createSOAPFactory(String protocol)
throws 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
SOAPException - if there was an error creating the
specified SOAPFactorySAAJMetaFactorypublic Message createMessage(SOAPMessage saaj)
saaj - SOAPMessage
public SOAPMessage readAsSOAPMessage(SOAPVersion soapVersion,
Message message)
throws SOAPException
soapVersion - SOAP versionmessage - Message
SOAPException - if SAAJ processing fails
public SOAPMessage readAsSOAPMessageSax2Dom(SOAPVersion soapVersion,
Message message)
throws SOAPException
SOAPException
protected static void addAttachmentsToSOAPMessage(SOAPMessage msg,
Message message)
public SOAPMessage readAsSOAPMessage(SOAPVersion soapVersion,
Message message,
Packet packet)
throws SOAPException
soapVersion - SOAP versionmessage - Message
SOAPException - if SAAJ processing fails
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||