public abstract class FileAttachment<T extends AbstractWsdlModelItem<?>> extends Object implements WsdlAttachment
Attachment.AttachmentEncoding, Attachment.AttachmentType| Constructor and Description | 
|---|
| FileAttachment(T modelItem,
              AttachmentConfig config) | 
| FileAttachment(T modelItem,
              File file,
              boolean cache,
              AttachmentConfig config) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | addExternalDependency(List<ExternalDependency> dependencies) | 
| void | cacheFileLocally(File file) | 
| abstract Attachment.AttachmentType | getAttachmentType() | 
| AttachmentConfig | getConfig() | 
| String | getContentEncoding() | 
| String | getContentID() | 
| String | getContentType() | 
| byte[] | getData() | 
| InputStream | getInputStream() | 
| T | getModelItem() | 
| String | getName() | 
| String | getPart() | 
| long | getSize() | 
| String | getUrl() | 
| boolean | isCached() | 
| void | release() | 
| void | reload(File file,
      boolean cache) | 
| void | resolve(ResolveContext<?> context) | 
| void | setContentID(String contentID) | 
| void | setContentType(String contentType) | 
| void | setData(byte[] data) | 
| void | setName(String value) | 
| void | setPart(String part) | 
| void | setUrl(String url) | 
| void | updateConfig(AttachmentConfig config) | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetEncoding, getIdpublic FileAttachment(T modelItem, AttachmentConfig config)
public FileAttachment(T modelItem, File file, boolean cache, AttachmentConfig config) throws IOException
IOExceptionpublic void setName(String value)
setName in interface WsdlAttachmentpublic void setUrl(String url)
setUrl in interface WsdlAttachmentpublic void reload(File file, boolean cache) throws IOException
reload in interface WsdlAttachmentIOExceptionpublic T getModelItem()
public void cacheFileLocally(File file) throws FileNotFoundException, IOException
FileNotFoundExceptionIOExceptionpublic String getContentType()
getContentType in interface Attachmentpublic InputStream getInputStream() throws IOException
getInputStream in interface AttachmentIOExceptionpublic String getName()
getName in interface Attachmentpublic long getSize()
getSize in interface Attachmentpublic void release()
public String getPart()
getPart in interface Attachmentpublic void setContentType(String contentType)
setContentType in interface Attachmentpublic void setPart(String part)
setPart in interface Attachmentpublic void setData(byte[] data)
public byte[] getData()
               throws IOException
IOExceptionpublic String getUrl()
getUrl in interface Attachmentpublic boolean isCached()
isCached in interface Attachmentpublic abstract Attachment.AttachmentType getAttachmentType()
getAttachmentType in interface Attachmentpublic void updateConfig(AttachmentConfig config)
updateConfig in interface WsdlAttachmentpublic AttachmentConfig getConfig()
getConfig in interface WsdlAttachmentpublic void setContentID(String contentID)
setContentID in interface WsdlAttachmentpublic String getContentID()
getContentID in interface Attachmentpublic void resolve(ResolveContext<?> context)
public String getContentEncoding()
getContentEncoding in interface Attachmentpublic void addExternalDependency(List<ExternalDependency> dependencies)
Copyright © 2019. All Rights Reserved.