public class MockSOAPMessage extends SOAPMessage
CHARACTER_SET_ENCODING, WRITE_XML_DECLARATION| Constructor and Description |
|---|
MockSOAPMessage() |
MockSOAPMessage(MimeHeaders headers) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAttachmentPart(AttachmentPart attachmentPart) |
int |
countAttachments() |
AttachmentPart |
createAttachmentPart() |
AttachmentPart |
getAttachment(SOAPElement element) |
Iterator |
getAttachments() |
Iterator |
getAttachments(MimeHeaders mimeHeaders) |
String |
getContentDescription() |
MimeHeaders |
getMimeHeaders() |
SOAPBody |
getSOAPBody() |
SOAPPart |
getSOAPPart() |
void |
removeAllAttachments() |
void |
removeAttachments(MimeHeaders mimeHeaders) |
void |
saveChanges() |
boolean |
saveRequired() |
void |
setContentDescription(String string) |
void |
setMessageBody(String messageBody) |
void |
setMimeHeaders(MimeHeaders mimeHeaders) |
void |
writeTo(OutputStream outputStream) |
createAttachmentPart, createAttachmentPart, getProperty, getSOAPHeader, setPropertypublic MockSOAPMessage()
public MockSOAPMessage(MimeHeaders headers)
public void setMessageBody(String messageBody)
public SOAPBody getSOAPBody() throws SOAPException
getSOAPBody in class SOAPMessageSOAPExceptionpublic MimeHeaders getMimeHeaders()
getMimeHeaders in class SOAPMessagepublic void setMimeHeaders(MimeHeaders mimeHeaders)
public void addAttachmentPart(AttachmentPart attachmentPart)
addAttachmentPart in class SOAPMessagepublic AttachmentPart createAttachmentPart()
createAttachmentPart in class SOAPMessagepublic String getContentDescription()
getContentDescription in class SOAPMessagepublic void setContentDescription(String string)
setContentDescription in class SOAPMessagepublic SOAPPart getSOAPPart()
getSOAPPart in class SOAPMessagepublic void removeAllAttachments()
removeAllAttachments in class SOAPMessagepublic int countAttachments()
countAttachments in class SOAPMessagepublic Iterator getAttachments()
getAttachments in class SOAPMessagepublic AttachmentPart getAttachment(SOAPElement element)
getAttachment in class SOAPMessagepublic Iterator getAttachments(MimeHeaders mimeHeaders)
getAttachments in class SOAPMessagepublic void saveChanges()
throws SOAPException
saveChanges in class SOAPMessageSOAPExceptionpublic boolean saveRequired()
saveRequired in class SOAPMessagepublic void writeTo(OutputStream outputStream) throws SOAPException, IOException
writeTo in class SOAPMessageSOAPExceptionIOExceptionpublic void removeAttachments(MimeHeaders mimeHeaders)
removeAttachments in class SOAPMessageCopyright © 2006-2014 GateIn. All Rights Reserved.