Class MessageImpl

java.lang.Object
jakarta.xml.soap.SOAPMessage
com.sun.xml.messaging.saaj.soap.MessageImpl
All Implemented Interfaces:
SOAPConstants
Direct Known Subclasses:
Message1_1Impl, Message1_2Impl

public abstract class MessageImpl extends SOAPMessage implements SOAPConstants
The message implementation for SOAP messages with attachments. Messages for specific profiles will likely extend this MessageImpl class and add more value for that particular profile.
Author:
Anil Vijendran (akv@eng.sun.com), Rajiv Mordani (rajiv.mordani@sun.com), Manveen Kaur (manveen.kaur@sun.com)
  • Field Details

    • CONTENT_ID

      public static final String CONTENT_ID
      See Also:
    • CONTENT_LOCATION

      public static final String CONTENT_LOCATION
      See Also:
    • PLAIN_XML_FLAG

      protected static final int PLAIN_XML_FLAG
      See Also:
    • MIME_MULTIPART_FLAG

      protected static final int MIME_MULTIPART_FLAG
      See Also:
    • SOAP1_1_FLAG

      protected static final int SOAP1_1_FLAG
      See Also:
    • SOAP1_2_FLAG

      protected static final int SOAP1_2_FLAG
      See Also:
    • MIME_MULTIPART_XOP_SOAP1_1_FLAG

      protected static final int MIME_MULTIPART_XOP_SOAP1_1_FLAG
      See Also:
    • MIME_MULTIPART_XOP_SOAP1_2_FLAG

      protected static final int MIME_MULTIPART_XOP_SOAP1_2_FLAG
      See Also:
    • XOP_FLAG

      protected static final int XOP_FLAG
      See Also:
    • FI_ENCODED_FLAG

      protected static final int FI_ENCODED_FLAG
      See Also:
    • headers

      protected MimeHeaders headers
    • contentType

      protected ContentType contentType
    • soapPartImpl

      protected SOAPPartImpl soapPartImpl
    • attachments

      protected FinalArrayList<AttachmentPart> attachments
    • saved

      protected boolean saved
    • messageBytes

      protected byte[] messageBytes
    • messageByteCount

      protected int messageByteCount
    • properties

      protected Map<String,Object> properties
    • multiPart

      protected MimeMultipart multiPart
    • attachmentsInitialized

      protected boolean attachmentsInitialized
    • isFastInfoset

      protected boolean isFastInfoset
      True if this part is encoded using Fast Infoset. MIME -> application/fastinfoset
    • acceptFastInfoset

      protected boolean acceptFastInfoset
      True if the Accept header of this message includes application/fastinfoset
    • mmp

      protected MimeMultipart mmp
    • LAZY_SOAP_BODY_PARSING

      public static final String LAZY_SOAP_BODY_PARSING
      See Also:
    • SAAJ_MIME_SOAP_BODY_PART_SIZE_LIMIT

      public static final String SAAJ_MIME_SOAP_BODY_PART_SIZE_LIMIT
      See Also:
  • Constructor Details

    • MessageImpl

      protected MessageImpl()
      Construct a new message. This will be invoked before message sends.
    • MessageImpl

      protected MessageImpl(boolean isFastInfoset, boolean acceptFastInfoset)
      Construct a new message. This will be invoked before message sends.
      Parameters:
      isFastInfoset - whether it is fast infoset
      acceptFastInfoset - whether to accept fast infoset
    • MessageImpl

      protected MessageImpl(SOAPMessage msg)
      Shallow copy.
      Parameters:
      msg - SoapMessage
    • MessageImpl

      protected MessageImpl(MimeHeaders headers, InputStream in) throws SOAPExceptionImpl
      Construct a message from an input stream. When messages are received, there's two parts -- the transport headers and the message content in a transport specific stream.
      Parameters:
      headers - MimeHeaders
      in - InputStream
      Throws:
      SOAPExceptionImpl - in case of I/O error
    • MessageImpl

      protected MessageImpl(MimeHeaders headers, ContentType contentType, int stat, InputStream in) throws SOAPExceptionImpl
      Construct a message from an input stream. When messages are received, there's two parts -- the transport headers and the message content in a transport specific stream.
      Parameters:
      headers - headers
      contentType - The parsed content type header from the headers variable. This is redundant parameter, but it avoids reparsing this header again.
      stat - The result of identifyContentType(ContentType) over the contentType parameter. This redundant parameter, but it avoids recomputing this information again.
      in - input stream
      Throws:
      SOAPExceptionImpl - in case of an error
    • MessageImpl

      protected MessageImpl(MimeHeaders headers, ContentType ct, int stat, XMLStreamReader reader) throws SOAPExceptionImpl
      Throws:
      SOAPExceptionImpl
  • Method Details