|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.smartwerkz.jupload.classic.net.http.HttpUploader
public class HttpUploader
An UploadClient which uses HTTP protocol. A new HttpUploader will automatically created by the UploadManager for any http(s) and (web)dav - URLs.
| Constructor Summary | |
|---|---|
HttpUploader()
|
|
| Method Summary | |
|---|---|
void |
addAuthentication(UploadManager manager)
User login is required and information needs to be provided using the given provider. |
void |
close()
Is implemented to dispose all resources that have been acquired for an Upload. After calling this method, the Uploader.closed() method should return true until
resources are allocated that require another call of the close method. |
boolean |
closed()
Returns wether the close method already has been called. |
protected boolean |
createPostMethod(boolean thumbnails)
|
protected boolean |
createPutMethod(boolean thumbs)
|
java.lang.Class |
getAuthInfoClass()
|
protected org.apache.commons.httpclient.HttpClient |
getClient(boolean thumbs)
|
void |
init(UploadClient uploadClient)
Is called right after creation to initialize this Uploader. |
static boolean |
isWebdav(java.net.URL url)
|
boolean |
performFileUpload(NOKMap params)
Tries to upload the files of the current queue, using this Uploader's protocol. |
boolean |
performThumbnailUpload(NOKMap params)
Tries to upload the thumbnails of the current queue, using this Uploader's protocol. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HttpUploader()
| Method Detail |
|---|
public void init(UploadClient uploadClient)
Uploader
init in interface Uploader
public boolean performFileUpload(NOKMap params)
throws java.lang.Exception
FileUploader
performFileUpload in interface FileUploaderjava.lang.Exception - If the upload failed.
public boolean performThumbnailUpload(NOKMap params)
throws java.lang.Exception
ThumbnailUploader
performThumbnailUpload in interface ThumbnailUploaderjava.lang.Exception - If the upload failed.public static boolean isWebdav(java.net.URL url)
protected boolean createPutMethod(boolean thumbs)
throws java.lang.Exception
java.lang.Exception
protected boolean createPostMethod(boolean thumbnails)
throws java.lang.Exception
java.lang.Exceptionprotected org.apache.commons.httpclient.HttpClient getClient(boolean thumbs)
public void close()
UploaderUploader.closed() method should return true until
resources are allocated that require another call of the close method.
close in interface Uploaderpublic boolean closed()
Uploaderclose method will be called automatically.UploadClient.cancel()
method instead of this to check if this upload has been closed or not.
closed in interface Uploaderpublic void addAuthentication(UploadManager manager)
Uploader
addAuthentication in interface Uploaderpublic java.lang.Class getAuthInfoClass()
getAuthInfoClass in interface Uploader
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||