|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmodels.CacheFile
models.CacheFileInfo
public class CacheFileInfo
model for cache files on the server
CacheFile| Constructor Summary | |
|---|---|
CacheFileInfo(byte[] file,
java.lang.String fileName,
java.lang.String contentType,
boolean image)
constructor of class |
|
| Method Summary | |
|---|---|
void |
appendFile(byte[] file)
append file data |
java.lang.String |
etag()
|
static java.util.List<java.lang.String> |
fromBody(play.mvc.Http.MultipartFormData body)
ready files from body |
static java.util.List<java.lang.String> |
fromBody(play.mvc.Http.MultipartFormData body,
boolean isImages)
ready files from body |
java.lang.String |
getContentType()
|
byte[] |
getFile()
|
java.lang.String |
getFileName()
|
static CacheFileInfo |
getFromCache(java.lang.String uuid)
get file from cache |
boolean |
isImage()
|
void |
setContentType(java.lang.String contentType)
set content type |
void |
setFile(byte[] file)
set file data |
void |
setFileName(java.lang.String fileName)
set file name |
void |
setImage(boolean image)
set is file image |
| Methods inherited from class models.CacheFile |
|---|
getContentType, getImageFormatName, md5, removeFromCache |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CacheFileInfo(byte[] file,
java.lang.String fileName,
java.lang.String contentType,
boolean image)
file - byte array of filefileName - file name stringcontentType - content type of fileimage - is file an image| Method Detail |
|---|
public byte[] getFile()
public java.lang.String etag()
public void setFile(byte[] file)
file - byte arraypublic void appendFile(byte[] file)
public java.lang.String getFileName()
public void setFileName(java.lang.String fileName)
fileName - name stringpublic java.lang.String getContentType()
public void setContentType(java.lang.String contentType)
contentType - content type stringpublic boolean isImage()
public void setImage(boolean image)
image - boolean valuepublic static CacheFileInfo getFromCache(java.lang.String uuid)
public static java.util.List<java.lang.String> fromBody(play.mvc.Http.MultipartFormData body)
throws java.io.IOException
body - body object
java.io.IOException
public static java.util.List<java.lang.String> fromBody(play.mvc.Http.MultipartFormData body,
boolean isImages)
throws java.io.IOException
body - body objectisImages - is file an image
java.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||