| 
 | Oracle Fusion Middleware Java API Reference for Oracle Service Bus 11g Release 1 (11.1.1.7) E15033-09 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
   com.bea.wli.sb.sources.SAAJSource
com.bea.wli.sb.sources.SAAJSource
public class SAAJSource
An implementation of Source that is backed by a SAAJ SOAPMessage object. A SAAJSource is typically converted to and from MessageContextSource and MimeSource. <p/> The serialization representation of this source is entirely determined by the SOAPMessage object. However, character-set encoding can be modified via the TransformOptions.CHARACTER_ENCODING options.
| Field Summary | |
|---|---|
| static java.lang.String | MESSAGE_FACTORYan optional transform option used during transformations that tells the transformer to use the specified instance of MessageFactoryto create instances of SAAJ messages. | 
| static java.lang.String | SOAP12_VERSIONan optional transform option used during transformations that tells the transformer to create an instance of SOAP Message of specified SOAP protocol when transforming from some Source to SAAJSource <p/> The meaning of the flag is as follows: if set to true - SOAP1.2 protocol version of SOAP Message will be created if set to false - - SOAP1.1 protocol version of SOAP Message will be created if not set - the caller does not know which version If not specified, the source payload will be (partially) parsed in order to determine which SOAP version it uses | 
| Fields inherited from interface com.bea.wli.sb.sources.Source | 
|---|
| DEFAULT_CHARACTER_SET_ENCODING | 
| Constructor Summary | |
|---|---|
| SAAJSource(javax.xml.soap.SOAPMessage message) | |
| Method Summary | |
|---|---|
|  java.lang.String | getCharacterEncoding()Returns the character encoding of the message (do we need this?) | 
|  java.io.InputStream | getInputStream(TransformOptions options)Returns streaming byte-baseed representation of the Source's content. | 
|  javax.xml.soap.SOAPMessage | getSOAPMessage()Returns the underlying SOAPMessage. | 
|  void | writeTo(java.io.OutputStream os, TransformOptions options)Serializes the Source's content to a byte-based stream. | 
| Methods inherited from class java.lang.Object | 
|---|
| equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
public static final java.lang.String MESSAGE_FACTORY
MessageFactory to create instances of SAAJ messages. Be careful when using this option to pass an instance of Message Factory that suppoorts desired SOAP protocol. <p/> e.g.
 MessageFactory msgFactory = isSoap12 ?
    MessageFactory.newInstance(SOAPConstants.SOAP_1_2_PROTOCOL) :
    MessageFactory.newInstance(SOAPConstants.SOAP_1_1_PROTOCOL);
 (or something like 
  MessageFactory msgFactory = isSoap12 ?
   new oracle.j2ee.ws.saaj.soap.MessageFactoryImpl("soap1.2") :
   new oracle.j2ee.ws.saaj.soap.MessageFactoryImpl("soap1.1");
 )
 options.put(SAAJSource.MESSAGE_FACTORY, msgFactory);
 SAAJSource saaj = ...getTransformer().transform(source, SAAJSource.class, options);
 
If not specified, the default platform SAAJ factory will be used.
public static final java.lang.String SOAP12_VERSION
| Constructor Detail | 
|---|
public SAAJSource(javax.xml.soap.SOAPMessage message)
| Method Detail | 
|---|
public javax.xml.soap.SOAPMessage getSOAPMessage()
public java.lang.String getCharacterEncoding()
public java.io.InputStream getInputStream(TransformOptions options)
                                   throws java.io.IOException,
                                          TransformException
SourcegetInputStream in interface Sourceoptions - Options used to affect the serializationjava.io.IOExceptionTransformException
public void writeTo(java.io.OutputStream os,
                    TransformOptions options)
             throws java.io.IOException,
                    TransformException
SourcewriteTo in interface Sourceos - the OutputStream to which serialized content will be writtenoptions - TransformOptions used to affect the serializationjava.io.IOExceptionTransformException| 
 | Oracle Fusion Middleware Java API Reference for Oracle Service Bus 11g Release 1 (11.1.1.7) E15033-09 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||