mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-14 17:58:59 +00:00
126349 jkaabimofrad: Merged FILE-FOLDER-API (5.2.0) to HEAD (5.2) 118692 jvonka: Merge from DEV/SABRE_JANV1 (part 2) - RA-613 / RA-655 - File Folder API (PoC - experimental WIP) - TODO add tests +review backwards compat' (eg. favs) git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@126694 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
51 lines
973 B
Java
51 lines
973 B
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 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 + "]";
|
|
}
|
|
}
|