Package org.cyclos.model.utils
Class FileInfo
- java.lang.Object
-
- org.cyclos.model.utils.FileInfo
-
- All Implemented Interfaces:
Serializable,HasPartialData
public class FileInfo extends Object implements Serializable, HasPartialData
Used whenever a file upload / download is needed, containing information about the file.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FileInfo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SerializableInputStreamgetContent()StringgetContentType()StringgetEncoding()LonggetLastModified()IntegergetLength()StringgetName()booleanisPartialData()Indicates whether only part of the expected data is being returned due to a failure in the backend service (such failing OpenSearch shards).voidsetContent(SerializableInputStream content)voidsetContentType(String contentType)voidsetEncoding(String encoding)voidsetLastModified(Long lastModified)voidsetLength(Integer length)voidsetName(String name)voidsetPartialData(boolean partialData)StringtoString()
-
-
-
Method Detail
-
getContent
public SerializableInputStream getContent()
-
getContentType
public String getContentType()
-
getEncoding
public String getEncoding()
-
getLastModified
public Long getLastModified()
-
getLength
public Integer getLength()
-
getName
public String getName()
-
isPartialData
public boolean isPartialData()
Description copied from interface:HasPartialDataIndicates whether only part of the expected data is being returned due to a failure in the backend service (such failing OpenSearch shards).- Specified by:
isPartialDatain interfaceHasPartialData
-
setContent
public void setContent(SerializableInputStream content)
-
setContentType
public void setContentType(String contentType)
-
setEncoding
public void setEncoding(String encoding)
-
setLastModified
public void setLastModified(Long lastModified)
-
setLength
public void setLength(Integer length)
-
setName
public void setName(String name)
-
setPartialData
public void setPartialData(boolean partialData)
-
-