|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.xml.soap.SOAPMessage
com.sun.xml.messaging.saaj.soap.MessageImpl
public abstract class MessageImpl
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.
| Field Summary | |
|---|---|
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 MimeHeaders |
headers
|
protected boolean |
isFastInfoset
True if this part is encoded using Fast Infoset. |
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
|
| Fields inherited from class javax.xml.soap.SOAPMessage |
|---|
CHARACTER_SET_ENCODING, WRITE_XML_DECLARATION |
| Constructor Summary | |
|---|---|
protected |
MessageImpl()
Construct a new message. |
protected |
MessageImpl(boolean isFastInfoset,
boolean acceptFastInfoset)
Construct a new message. |
protected |
MessageImpl(MimeHeaders headers,
ContentType contentType,
int stat,
java.io.InputStream in)
Construct a message from an input stream. |
protected |
MessageImpl(MimeHeaders headers,
java.io.InputStream in)
Construct a message from an input stream. |
protected |
MessageImpl(SOAPMessage msg)
Shallow copy. |
| Method Summary | |
|---|---|
boolean |
acceptFastInfoset()
|
void |
addAttachmentPart(AttachmentPart attachment)
|
int |
countAttachments()
|
AttachmentPart |
createAttachmentPart()
|
java.lang.String |
getAction()
|
AttachmentPart |
getAttachment(SOAPElement element)
|
java.util.Iterator |
getAttachments()
|
java.util.Iterator |
getAttachments(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()
|
MimeHeaders |
getMimeHeaders()
|
java.lang.Object |
getProperty(java.lang.String property)
|
SOAPBody |
getSOAPBody()
|
SOAPHeader |
getSOAPHeader()
|
abstract SOAPPart |
getSOAPPart()
|
protected abstract boolean |
isCorrectSoapVersion(int contentTypeId)
|
boolean |
isFastInfoset()
|
protected static boolean |
isSoap1_1Content(int stat)
|
protected static boolean |
isSoap1_2Content(int stat)
|
void |
removeAllAttachments()
|
void |
removeAttachments(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)
|
| Methods inherited from class javax.xml.soap.SOAPMessage |
|---|
createAttachmentPart, createAttachmentPart |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
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 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
| Constructor Detail |
|---|
protected MessageImpl()
protected MessageImpl(boolean isFastInfoset,
boolean acceptFastInfoset)
protected MessageImpl(SOAPMessage msg)
protected MessageImpl(MimeHeaders headers,
java.io.InputStream in)
throws SOAPExceptionImpl
SOAPExceptionImpl
protected MessageImpl(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.
SOAPExceptionImpl| Method Detail |
|---|
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 java.lang.Object getProperty(java.lang.String property)
getProperty in class SOAPMessage
public void setProperty(java.lang.String property,
java.lang.Object value)
setProperty in class SOAPMessageprotected abstract boolean isCorrectSoapVersion(int contentTypeId)
protected abstract java.lang.String getExpectedContentType()
protected abstract java.lang.String getExpectedAcceptHeader()
public MimeHeaders getMimeHeaders()
getMimeHeaders in class 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 SOAPMessagepublic java.lang.String getContentDescription()
getContentDescription in class SOAPMessagepublic void setContentDescription(java.lang.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 java.util.Iterator getAttachments()
getAttachments in class SOAPMessagepublic java.util.Iterator getAttachments(MimeHeaders headers)
getAttachments in class SOAPMessagepublic void removeAttachments(MimeHeaders headers)
removeAttachments in class SOAPMessagepublic AttachmentPart createAttachmentPart()
createAttachmentPart in class SOAPMessage
public AttachmentPart getAttachment(SOAPElement element)
throws SOAPException
getAttachment in class SOAPMessageSOAPException
public void saveChanges()
throws SOAPException
saveChanges in class SOAPMessageSOAPException
public void writeTo(java.io.OutputStream out)
throws SOAPException,
java.io.IOException
writeTo in class SOAPMessageSOAPException
java.io.IOException
public SOAPBody getSOAPBody()
throws SOAPException
getSOAPBody in class SOAPMessageSOAPException
public SOAPHeader getSOAPHeader()
throws SOAPException
getSOAPHeader in class SOAPMessageSOAPExceptionpublic void setLazyAttachments(boolean flag)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||