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, wait
getEncoding, getId
public FileAttachment(T modelItem, AttachmentConfig config)
public FileAttachment(T modelItem, File file, boolean cache, AttachmentConfig config) throws IOException
IOException
public void setName(String value)
setName
in interface WsdlAttachment
public void setUrl(String url)
setUrl
in interface WsdlAttachment
public void reload(File file, boolean cache) throws IOException
reload
in interface WsdlAttachment
IOException
public T getModelItem()
public void cacheFileLocally(File file) throws FileNotFoundException, IOException
FileNotFoundException
IOException
public String getContentType()
getContentType
in interface Attachment
public InputStream getInputStream() throws IOException
getInputStream
in interface Attachment
IOException
public String getName()
getName
in interface Attachment
public long getSize()
getSize
in interface Attachment
public void release()
public String getPart()
getPart
in interface Attachment
public void setContentType(String contentType)
setContentType
in interface Attachment
public void setPart(String part)
setPart
in interface Attachment
public void setData(byte[] data)
public byte[] getData() throws IOException
IOException
public String getUrl()
getUrl
in interface Attachment
public boolean isCached()
isCached
in interface Attachment
public abstract Attachment.AttachmentType getAttachmentType()
getAttachmentType
in interface Attachment
public void updateConfig(AttachmentConfig config)
updateConfig
in interface WsdlAttachment
public AttachmentConfig getConfig()
getConfig
in interface WsdlAttachment
public void setContentID(String contentID)
setContentID
in interface WsdlAttachment
public String getContentID()
getContentID
in interface Attachment
public void resolve(ResolveContext<?> context)
public String getContentEncoding()
getContentEncoding
in interface Attachment
public void addExternalDependency(List<ExternalDependency> dependencies)
Copyright © 2019. All Rights Reserved.