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 java.lang.String |
CONTENT_ID |
static java.lang.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.
|
static java.lang.String |
LAZY_SOAP_BODY_PARSING |
protected static java.util.logging.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 java.util.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_DECLARATIONDEFAULT_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,
java.io.InputStream in)
Construct a message from an input stream.
|
|
MessageImpl(javax.xml.soap.MimeHeaders headers,
ContentType ct,
int stat,
javax.xml.stream.XMLStreamReader reader) |
protected |
MessageImpl(javax.xml.soap.MimeHeaders headers,
java.io.InputStream in)
Construct a message from an input stream.
|
protected |
MessageImpl(javax.xml.soap.SOAPMessage msg)
Shallow copy.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
acceptFastInfoset() |
void |
addAttachmentPart(javax.xml.soap.AttachmentPart attachment) |
int |
countAttachments() |
javax.xml.soap.AttachmentPart |
createAttachmentPart() |
java.lang.String |
getAction() |
javax.xml.soap.AttachmentPart |
getAttachment(javax.xml.soap.SOAPElement element) |
java.util.Iterator |
getAttachments() |
java.util.Iterator |
getAttachments(javax.xml.soap.MimeHeaders headers) |
java.lang.String |
getBaseType() |
java.lang.String |
getCharset() |
java.lang.String |
getContentDescription() |
java.lang.String |
getContentType() |
protected abstract java.lang.String |
getExpectedAcceptHeader() |
protected abstract java.lang.String |
getExpectedContentType() |
javax.xml.soap.MimeHeaders |
getMimeHeaders() |
java.lang.Object |
getProperty(java.lang.String property) |
javax.xml.soap.SOAPBody |
getSOAPBody() |
javax.xml.soap.SOAPHeader |
getSOAPHeader() |
abstract javax.xml.soap.SOAPPart |
getSOAPPart() |
protected abstract boolean |
isCorrectSoapVersion(int contentTypeId) |
boolean |
isFastInfoset() |
boolean |
isLazySoapBodyParsing() |
protected static boolean |
isSoap1_1Content(int stat) |
protected static boolean |
isSoap1_2Content(int stat) |
void |
removeAllAttachments() |
void |
removeAttachments(javax.xml.soap.MimeHeaders headers) |
void |
saveChanges() |
boolean |
saveRequired() |
void |
setAction(java.lang.String action) |
void |
setBaseType(java.lang.String type) |
void |
setCharset(java.lang.String charset) |
void |
setContentDescription(java.lang.String description) |
void |
setContentType(java.lang.String type) |
void |
setIsFastInfoset(boolean value) |
void |
setLazyAttachments(boolean flag) |
void |
setProperty(java.lang.String property,
java.lang.Object value) |
void |
writeTo(java.io.OutputStream out) |
public static final java.lang.String CONTENT_ID
public static final java.lang.String CONTENT_LOCATION
protected static final java.util.logging.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 java.util.HashMap properties
protected MimeMultipart multiPart
protected boolean attachmentsInitialized
protected boolean isFastInfoset
protected boolean acceptFastInfoset
protected MimeMultipart mmp
public static final java.lang.String LAZY_SOAP_BODY_PARSING
protected MessageImpl()
protected MessageImpl(boolean isFastInfoset,
boolean acceptFastInfoset)
protected MessageImpl(javax.xml.soap.SOAPMessage msg)
protected MessageImpl(javax.xml.soap.MimeHeaders headers,
java.io.InputStream in)
throws SOAPExceptionImpl
SOAPExceptionImplprotected MessageImpl(javax.xml.soap.MimeHeaders headers,
ContentType contentType,
int stat,
java.io.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.SOAPExceptionImplpublic MessageImpl(javax.xml.soap.MimeHeaders headers,
ContentType ct,
int stat,
javax.xml.stream.XMLStreamReader reader)
throws SOAPExceptionImpl
SOAPExceptionImplprotected 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 boolean isLazySoapBodyParsing()
public java.lang.Object getProperty(java.lang.String property)
getProperty in class javax.xml.soap.SOAPMessagepublic void setProperty(java.lang.String property,
java.lang.Object value)
setProperty in class javax.xml.soap.SOAPMessageprotected abstract boolean isCorrectSoapVersion(int contentTypeId)
protected abstract java.lang.String getExpectedContentType()
protected abstract java.lang.String getExpectedAcceptHeader()
public javax.xml.soap.MimeHeaders getMimeHeaders()
getMimeHeaders in class javax.xml.soap.SOAPMessagepublic java.lang.String getContentType()
public void setContentType(java.lang.String type)
public java.lang.String getBaseType()
public void setBaseType(java.lang.String type)
public java.lang.String getAction()
public void setAction(java.lang.String action)
public java.lang.String getCharset()
public void setCharset(java.lang.String charset)
public boolean saveRequired()
saveRequired in class javax.xml.soap.SOAPMessagepublic java.lang.String getContentDescription()
getContentDescription in class javax.xml.soap.SOAPMessagepublic void setContentDescription(java.lang.String description)
setContentDescription in class javax.xml.soap.SOAPMessagepublic abstract javax.xml.soap.SOAPPart getSOAPPart()
getSOAPPart in class javax.xml.soap.SOAPMessagepublic void removeAllAttachments()
removeAllAttachments in class javax.xml.soap.SOAPMessagepublic int countAttachments()
countAttachments in class javax.xml.soap.SOAPMessagepublic void addAttachmentPart(javax.xml.soap.AttachmentPart attachment)
addAttachmentPart in class javax.xml.soap.SOAPMessagepublic java.util.Iterator getAttachments()
getAttachments in class javax.xml.soap.SOAPMessagepublic java.util.Iterator getAttachments(javax.xml.soap.MimeHeaders headers)
getAttachments in class javax.xml.soap.SOAPMessagepublic void removeAttachments(javax.xml.soap.MimeHeaders headers)
removeAttachments in class javax.xml.soap.SOAPMessagepublic javax.xml.soap.AttachmentPart createAttachmentPart()
createAttachmentPart in class javax.xml.soap.SOAPMessagepublic javax.xml.soap.AttachmentPart getAttachment(javax.xml.soap.SOAPElement element)
throws javax.xml.soap.SOAPException
getAttachment in class javax.xml.soap.SOAPMessagejavax.xml.soap.SOAPExceptionpublic void saveChanges()
throws javax.xml.soap.SOAPException
saveChanges in class javax.xml.soap.SOAPMessagejavax.xml.soap.SOAPExceptionpublic void writeTo(java.io.OutputStream out)
throws javax.xml.soap.SOAPException,
java.io.IOException
writeTo in class javax.xml.soap.SOAPMessagejavax.xml.soap.SOAPExceptionjava.io.IOExceptionpublic javax.xml.soap.SOAPBody getSOAPBody()
throws javax.xml.soap.SOAPException
getSOAPBody in class javax.xml.soap.SOAPMessagejavax.xml.soap.SOAPExceptionpublic javax.xml.soap.SOAPHeader getSOAPHeader()
throws javax.xml.soap.SOAPException
getSOAPHeader in class javax.xml.soap.SOAPMessagejavax.xml.soap.SOAPExceptionpublic void setLazyAttachments(boolean flag)
Copyright © 2013 Oracle. All Rights Reserved.