public abstract class MessageImpl extends SOAPMessage implements SOAPConstants
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
acceptFastInfoset
True if the Accept header of this message includes
application/fastinfoset
|
protected FinalArrayList<AttachmentPart> |
attachments |
protected boolean |
attachmentsInitialized |
static String |
CONTENT_ID |
static String |
CONTENT_LOCATION |
protected ContentType |
contentType |
protected static int |
FI_ENCODED_FLAG |
protected MimeHeaders |
headers |
protected boolean |
isFastInfoset
True if this part is encoded using Fast Infoset.
|
static String |
LAZY_SOAP_BODY_PARSING |
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 Map<String,Object> |
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(MimeHeaders headers,
ContentType contentType,
int stat,
InputStream in)
Construct a message from an input stream.
|
|
MessageImpl(MimeHeaders headers,
ContentType ct,
int stat,
XMLStreamReader reader) |
protected |
MessageImpl(MimeHeaders headers,
InputStream in)
Construct a message from an input stream.
|
protected |
MessageImpl(SOAPMessage msg)
Shallow copy.
|
createAttachmentPart, createAttachmentPartpublic 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 MimeHeaders headers
protected ContentType contentType
protected SOAPPartImpl soapPartImpl
protected FinalArrayList<AttachmentPart> attachments
protected boolean saved
protected byte[] messageBytes
protected int messageByteCount
protected MimeMultipart multiPart
protected boolean attachmentsInitialized
protected boolean isFastInfoset
protected boolean acceptFastInfoset
protected MimeMultipart mmp
public static final String LAZY_SOAP_BODY_PARSING
protected MessageImpl()
protected MessageImpl(boolean isFastInfoset,
boolean acceptFastInfoset)
isFastInfoset - whether it is fast infosetacceptFastInfoset - whether to accept fast infosetprotected MessageImpl(SOAPMessage msg)
msg - SoapMessageprotected MessageImpl(MimeHeaders headers, InputStream in) throws SOAPExceptionImpl
headers - MimeHeadersin - InputStreamSOAPExceptionImpl - in case of I/O errorprotected MessageImpl(MimeHeaders headers, ContentType contentType, int stat, InputStream in) throws SOAPExceptionImpl
headers - headerscontentType - 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 streamSOAPExceptionImpl - in case of an errorpublic MessageImpl(MimeHeaders headers, ContentType ct, int stat, 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 Object getProperty(String property)
getProperty in class SOAPMessagepublic void setProperty(String property, Object value)
setProperty in class SOAPMessageprotected abstract boolean isCorrectSoapVersion(int contentTypeId)
protected abstract String getExpectedContentType()
protected abstract String getExpectedAcceptHeader()
public MimeHeaders getMimeHeaders()
getMimeHeaders in class SOAPMessagepublic 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 SOAPMessagepublic String getContentDescription()
getContentDescription in class SOAPMessagepublic void setContentDescription(String description)
setContentDescription in class SOAPMessagepublic abstract SOAPPart getSOAPPart()
getSOAPPart in class SOAPMessagepublic void removeAllAttachments()
removeAllAttachments in class SOAPMessagepublic int countAttachments()
countAttachments in class SOAPMessagepublic void addAttachmentPart(AttachmentPart attachment)
addAttachmentPart in class SOAPMessagepublic Iterator<AttachmentPart> getAttachments()
getAttachments in class SOAPMessagepublic Iterator<AttachmentPart> getAttachments(MimeHeaders headers)
getAttachments in class SOAPMessagepublic void removeAttachments(MimeHeaders headers)
removeAttachments in class SOAPMessagepublic AttachmentPart createAttachmentPart()
createAttachmentPart in class SOAPMessagepublic AttachmentPart getAttachment(SOAPElement element) throws SOAPException
getAttachment in class SOAPMessageSOAPExceptionpublic void saveChanges()
throws SOAPException
saveChanges in class SOAPMessageSOAPExceptionpublic void writeTo(OutputStream out) throws SOAPException, IOException
writeTo in class SOAPMessageSOAPExceptionIOExceptionpublic SOAPBody getSOAPBody() throws SOAPException
getSOAPBody in class SOAPMessageSOAPExceptionpublic SOAPHeader getSOAPHeader() throws SOAPException
getSOAPHeader in class SOAPMessageSOAPExceptionpublic void setLazyAttachments(boolean flag)
Copyright © 2005–2017 Oracle Corporation. All rights reserved.