|
||||||||||
| 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 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 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,
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. |
| 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 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 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
public static final String LAZY_SOAP_BODY_PARSING
| Constructor Detail |
|---|
protected MessageImpl()
protected MessageImpl(boolean isFastInfoset,
boolean acceptFastInfoset)
protected MessageImpl(SOAPMessage msg)
protected MessageImpl(MimeHeaders headers,
InputStream in)
throws SOAPExceptionImpl
SOAPExceptionImpl
protected MessageImpl(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
public MessageImpl(MimeHeaders headers,
ContentType ct,
int stat,
XMLStreamReader reader)
throws SOAPExceptionImpl
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 boolean isLazySoapBodyParsing()
public Object getProperty(String property)
getProperty in class SOAPMessage
public 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 getAttachments()
getAttachments in class SOAPMessagepublic 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(OutputStream out)
throws SOAPException,
IOException
writeTo in class SOAPMessageSOAPException
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 | |||||||||