mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-14 17:58:59 +00:00
119798 jvonka: FileFolder API - NodeApiTest - add tests (+ve & -ve) to create empty file node - TODO subsequently show that file content can be updated RA-636 git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@126369 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
55 lines
1.0 KiB
Java
55 lines
1.0 KiB
Java
package org.alfresco.rest.api.model;
|
|
|
|
/**
|
|
* Representation of content info
|
|
*
|
|
* @author janv
|
|
*
|
|
*/
|
|
public class ContentInfo
|
|
{
|
|
private String mimeType;
|
|
private String mimeTypeName;
|
|
private long sizeInBytes;
|
|
private String encoding;
|
|
|
|
public ContentInfo()
|
|
{
|
|
}
|
|
|
|
public ContentInfo( String mimeType, String mimeTypeName, long sizeInBytes, String encoding)
|
|
{
|
|
this.mimeType = mimeType;
|
|
this.mimeTypeName = mimeTypeName;
|
|
this.sizeInBytes = sizeInBytes;
|
|
this.encoding = encoding;
|
|
}
|
|
|
|
public String getMimeType() {
|
|
return mimeType;
|
|
}
|
|
|
|
public void setMimeType(String mimeType) {
|
|
this.mimeType = mimeType;
|
|
}
|
|
|
|
public String getMimeTypeName() {
|
|
return mimeTypeName;
|
|
}
|
|
|
|
public long getSizeInBytes() {
|
|
return sizeInBytes;
|
|
}
|
|
|
|
public String getEncoding() {
|
|
return encoding;
|
|
}
|
|
|
|
@Override
|
|
public String toString()
|
|
{
|
|
return "ContentInfo [mimeType=" + mimeType + ", mimeTypeName=" + mimeTypeName
|
|
+ ", encoding=" + encoding + ", sizeInBytes=" + sizeInBytes + "]";
|
|
}
|
|
}
|