|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectome.formats.importer.util.FileUploader
public class FileUploader
Constructor Summary | |
---|---|
FileUploader(org.apache.commons.httpclient.HttpClient httpClient)
Initialize upload with httpClient |
Method Summary | |
---|---|
boolean |
addObserver(IObserver object)
Add observer for notification |
void |
cancel()
cancel's upload |
boolean |
deleteObserver(IObserver object)
Delete observer |
String |
getSessionId()
|
static void |
main(String[] args)
Main for testing (debugging only) |
void |
notifyObservers(ImportEvent event)
Notify observers of event |
void |
setSessionId(String sessionId)
Set specific sessionID |
void |
uploadFiles(String url,
int timeout,
ErrorContainer upload)
Upload files from error container to url |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FileUploader(org.apache.commons.httpclient.HttpClient httpClient)
httpClient
- Method Detail |
---|
public void setSessionId(String sessionId)
sessionId
- public String getSessionId()
public void uploadFiles(String url, int timeout, ErrorContainer upload)
url
- - url to send totimeout
- - timeoutupload
- - error container with files in itpublic boolean addObserver(IObserver object)
IObservable
addObserver
in interface IObservable
object
- - observer object
public boolean deleteObserver(IObserver object)
IObservable
deleteObserver
in interface IObservable
object
- - observer to delete
public void notifyObservers(ImportEvent event)
IObservable
notifyObservers
in interface IObservable
event
- - event that happenedpublic void cancel()
public static void main(String[] args)
args
-
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Version: 4.3.3-00d1137e-b2894
Copyright © 2009 The University of Dundee. All Rights Reserved.