|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.netheos.pcsapi.models.CUploadRequest
public class CUploadRequest
Class that parametrizes an upload request: path + bytes source
| Constructor Summary | |
|---|---|
CUploadRequest(CPath path,
ByteSource byteSource)
|
|
| Method Summary | |
|---|---|
ByteSource |
getByteSource()
If no progress listener has been set, return the byte source set in constructor, otherwise decorate it for progress. |
String |
getContentType()
Get the file content type |
CMetadata |
getMetadata()
Get the metadata setted to the file to upload |
CPath |
getPath()
Get the destination file path where the data will be uploaded |
CUploadRequest |
setContentType(String contentType)
Set the content type |
CUploadRequest |
setMetadata(CMetadata metadata)
Set the metadata to the file to upload |
CUploadRequest |
setProgressListener(ProgressListener pl)
Defines an object that will be notified during upload. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CUploadRequest(CPath path,
ByteSource byteSource)
| Method Detail |
|---|
public CPath getPath()
public String getContentType()
public CUploadRequest setContentType(String contentType)
contentType - The content type (ie. "image/jpeg")
public CMetadata getMetadata()
public CUploadRequest setMetadata(CMetadata metadata)
metadata - The metadata to use
public CUploadRequest setProgressListener(ProgressListener pl)
pl - progress listener
public ByteSource getByteSource()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||