public abstract class MessageImpl extends javax.xml.soap.SOAPMessage implements javax.xml.soap.SOAPConstants
Modifier and Type | Field and Description |
---|---|
protected boolean |
acceptFastInfoset
True if the Accept header of this message includes
application/fastinfoset
|
protected FinalArrayList |
attachments |
protected boolean |
attachmentsInitialized |
static String |
CONTENT_ID |
static String |
CONTENT_LOCATION |
protected ContentType |
contentType |
protected static int |
FI_ENCODED_FLAG |
protected javax.xml.soap.MimeHeaders |
headers |
protected boolean |
isFastInfoset
True if this part is encoded using Fast Infoset.
|
protected static Logger |
log |
protected int |
messageByteCount |
protected byte[] |
messageBytes |
protected static int |
MIME_MULTIPART_FLAG |
protected static int |
MIME_MULTIPART_XOP_SOAP1_1_FLAG |
protected static int |
MIME_MULTIPART_XOP_SOAP1_2_FLAG |
protected MimeMultipart |
mmp |
protected MimeMultipart |
multiPart |
protected static int |
PLAIN_XML_FLAG |
protected HashMap |
properties |
protected boolean |
saved |
protected static int |
SOAP1_1_FLAG |
protected static int |
SOAP1_2_FLAG |
protected SOAPPartImpl |
soapPartImpl |
protected static int |
XOP_FLAG |
CHARACTER_SET_ENCODING, WRITE_XML_DECLARATION
DEFAULT_SOAP_PROTOCOL, DYNAMIC_SOAP_PROTOCOL, SOAP_1_1_CONTENT_TYPE, SOAP_1_1_PROTOCOL, SOAP_1_2_CONTENT_TYPE, SOAP_1_2_PROTOCOL, SOAP_DATAENCODINGUNKNOWN_FAULT, SOAP_ENV_PREFIX, SOAP_MUSTUNDERSTAND_FAULT, SOAP_RECEIVER_FAULT, SOAP_SENDER_FAULT, SOAP_VERSIONMISMATCH_FAULT, URI_NS_SOAP_1_1_ENVELOPE, URI_NS_SOAP_1_2_ENCODING, URI_NS_SOAP_1_2_ENVELOPE, URI_NS_SOAP_ENCODING, URI_NS_SOAP_ENVELOPE, URI_SOAP_1_2_ROLE_NEXT, URI_SOAP_1_2_ROLE_NONE, URI_SOAP_1_2_ROLE_ULTIMATE_RECEIVER, URI_SOAP_ACTOR_NEXT
Modifier | Constructor and Description |
---|---|
protected |
MessageImpl()
Construct a new message.
|
protected |
MessageImpl(boolean isFastInfoset,
boolean acceptFastInfoset)
Construct a new message.
|
protected |
MessageImpl(javax.xml.soap.MimeHeaders headers,
ContentType contentType,
int stat,
InputStream in)
Construct a message from an input stream.
|
protected |
MessageImpl(javax.xml.soap.MimeHeaders headers,
InputStream in)
Construct a message from an input stream.
|
protected |
MessageImpl(javax.xml.soap.SOAPMessage msg)
Shallow copy.
|
createAttachmentPart, createAttachmentPart
public static final String CONTENT_ID
public static final String CONTENT_LOCATION
protected static final Logger log
protected static final int PLAIN_XML_FLAG
protected static final int MIME_MULTIPART_FLAG
protected static final int SOAP1_1_FLAG
protected static final int SOAP1_2_FLAG
protected static final int MIME_MULTIPART_XOP_SOAP1_1_FLAG
protected static final int MIME_MULTIPART_XOP_SOAP1_2_FLAG
protected static final int XOP_FLAG
protected static final int FI_ENCODED_FLAG
protected javax.xml.soap.MimeHeaders headers
protected ContentType contentType
protected SOAPPartImpl soapPartImpl
protected FinalArrayList attachments
protected boolean saved
protected byte[] messageBytes
protected int messageByteCount
protected HashMap properties
protected MimeMultipart multiPart
protected boolean attachmentsInitialized
protected boolean isFastInfoset
protected boolean acceptFastInfoset
protected MimeMultipart mmp
protected MessageImpl()
protected MessageImpl(boolean isFastInfoset, boolean acceptFastInfoset)
protected MessageImpl(javax.xml.soap.SOAPMessage msg)
protected MessageImpl(javax.xml.soap.MimeHeaders headers, InputStream in) throws SOAPExceptionImpl
SOAPExceptionImpl
protected MessageImpl(javax.xml.soap.MimeHeaders headers, ContentType contentType, int stat, InputStream in) throws SOAPExceptionImpl
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.SOAPExceptionImpl
protected static boolean isSoap1_1Content(int stat)
stat
- the mask value obtained from identifyContentType(ContentType)
protected static boolean isSoap1_2Content(int stat)
stat
- the mask value obtained from identifyContentType(ContentType)
public boolean isFastInfoset()
public boolean acceptFastInfoset()
public void setIsFastInfoset(boolean value)
public Object getProperty(String property)
getProperty
in class javax.xml.soap.SOAPMessage
public void setProperty(String property, Object value)
setProperty
in class javax.xml.soap.SOAPMessage
protected abstract boolean isCorrectSoapVersion(int contentTypeId)
protected abstract String getExpectedContentType()
protected abstract String getExpectedAcceptHeader()
public javax.xml.soap.MimeHeaders getMimeHeaders()
getMimeHeaders
in class javax.xml.soap.SOAPMessage
public String getContentType()
public void setContentType(String type)
public String getBaseType()
public void setBaseType(String type)
public String getAction()
public void setAction(String action)
public String getCharset()
public void setCharset(String charset)
public boolean saveRequired()
saveRequired
in class javax.xml.soap.SOAPMessage
public String getContentDescription()
getContentDescription
in class javax.xml.soap.SOAPMessage
public void setContentDescription(String description)
setContentDescription
in class javax.xml.soap.SOAPMessage
public abstract javax.xml.soap.SOAPPart getSOAPPart()
getSOAPPart
in class javax.xml.soap.SOAPMessage
public void removeAllAttachments()
removeAllAttachments
in class javax.xml.soap.SOAPMessage
public int countAttachments()
countAttachments
in class javax.xml.soap.SOAPMessage
public void addAttachmentPart(javax.xml.soap.AttachmentPart attachment)
addAttachmentPart
in class javax.xml.soap.SOAPMessage
public Iterator getAttachments()
getAttachments
in class javax.xml.soap.SOAPMessage
public Iterator getAttachments(javax.xml.soap.MimeHeaders headers)
getAttachments
in class javax.xml.soap.SOAPMessage
public void removeAttachments(javax.xml.soap.MimeHeaders headers)
removeAttachments
in class javax.xml.soap.SOAPMessage
public javax.xml.soap.AttachmentPart createAttachmentPart()
createAttachmentPart
in class javax.xml.soap.SOAPMessage
public javax.xml.soap.AttachmentPart getAttachment(javax.xml.soap.SOAPElement element) throws javax.xml.soap.SOAPException
getAttachment
in class javax.xml.soap.SOAPMessage
javax.xml.soap.SOAPException
public void saveChanges() throws javax.xml.soap.SOAPException
saveChanges
in class javax.xml.soap.SOAPMessage
javax.xml.soap.SOAPException
public void writeTo(OutputStream out) throws javax.xml.soap.SOAPException, IOException
writeTo
in class javax.xml.soap.SOAPMessage
javax.xml.soap.SOAPException
IOException
public javax.xml.soap.SOAPBody getSOAPBody() throws javax.xml.soap.SOAPException
getSOAPBody
in class javax.xml.soap.SOAPMessage
javax.xml.soap.SOAPException
public javax.xml.soap.SOAPHeader getSOAPHeader() throws javax.xml.soap.SOAPException
getSOAPHeader
in class javax.xml.soap.SOAPMessage
javax.xml.soap.SOAPException
public void setLazyAttachments(boolean flag)
Copyright © 2015 Oracle. All rights reserved.