public class SoapAttachment extends Object implements org.springframework.ws.mime.Attachment, Serializable
| Modifier and Type | Field and Description |
|---|---|
static String |
ENCODING_BASE64_BINARY |
static String |
ENCODING_HEX_BINARY |
| Constructor and Description |
|---|
SoapAttachment()
Default constructor
|
SoapAttachment(String content)
Constructor using fields.
|
| Modifier and Type | Method and Description |
|---|---|
static SoapAttachment |
from(org.springframework.ws.mime.Attachment attachment)
Static construction method from Spring mime attachment.
|
String |
getCharsetName()
Get the charset name.
|
String |
getContent()
Get the content body.
|
String |
getContentId() |
String |
getContentResourcePath()
Get the content file resource path.
|
String |
getContentType() |
DataHandler |
getDataHandler() |
String |
getEncodingType()
Gets the attachment encoding type.
|
InputStream |
getInputStream() |
long |
getSize() |
boolean |
isMtomInline()
Get mtom inline
|
void |
resolveDynamicContent(TestContext context)
Resolve dynamic string content in attachment
|
void |
setCharsetName(String charsetName)
Set the charset name.
|
void |
setContent(String content)
Set the content body.
|
void |
setContentId(String contentId)
Set the content id.
|
void |
setContentResourcePath(String path)
Set the content file resource path.
|
void |
setContentType(String contentType)
Set the content type.
|
void |
setDataHandler(DataHandler dataHandler)
Sets the data handler.
|
void |
setEncodingType(String encodingType)
Sets the attachment encoding type.
|
void |
setMtomInline(boolean inline)
Set mtom inline
|
String |
toString() |
public static final String ENCODING_BASE64_BINARY
public static final String ENCODING_HEX_BINARY
public SoapAttachment()
public SoapAttachment(String content)
content - public static SoapAttachment from(org.springframework.ws.mime.Attachment attachment)
attachment - public String getContentId()
getContentId in interface org.springframework.ws.mime.Attachmentpublic String getContentType()
getContentType in interface org.springframework.ws.mime.Attachmentpublic DataHandler getDataHandler()
getDataHandler in interface org.springframework.ws.mime.Attachmentpublic void setDataHandler(DataHandler dataHandler)
dataHandler - public InputStream getInputStream() throws IOException
getInputStream in interface org.springframework.ws.mime.AttachmentIOExceptionpublic long getSize()
getSize in interface org.springframework.ws.mime.Attachmentpublic String getContent()
public void setContent(String content)
content - the content to setpublic String getContentResourcePath()
public void setContentResourcePath(String path)
path - the content resource path to setpublic String getCharsetName()
public void setCharsetName(String charsetName)
charsetName - the charsetName to setpublic void setContentType(String contentType)
contentType - the contentType to setpublic void setContentId(String contentId)
contentId - the contentId to setpublic void setMtomInline(boolean inline)
inline - public boolean isMtomInline()
public String getEncodingType()
public void setEncodingType(String encodingType)
encodingType - public void resolveDynamicContent(TestContext context)
context - Test context used to resolve dynamic contentCopyright © 2008–2015 ConSol* Consulting&Solutions GmbH. All rights reserved.