public interface UploadAgent extends OperationAgent
Modifier and Type | Method and Description |
---|---|
void |
finish()
Invoke this method when uploading finished.
|
void |
upload(java.io.File file,
java.lang.String contentType)
Upload a file to ZK web application.
|
void |
upload(java.lang.String fileName,
java.io.InputStream content,
java.lang.String contentType)
Upload a file from input stream to ZK web application.
|
getClient, getDelegatee
void upload(java.lang.String fileName, java.io.InputStream content, java.lang.String contentType)
fileName
- specify name for uploading file, should not be null.content
- content of uploaded file, should not be null.contentType
- specify type of content. If null, indicate it is binary form.void upload(java.io.File file, java.lang.String contentType)
file
- file for uploading, should not be null.contentType
- specify type of content. If null, indicate it is binary form.void finish()
Copyright © 2019 Potix Corporation. All rights reserved.