public class MultipartFormPostImageUploader extends AbstractImageExporter
MultipartFormPost off an EDT thread keeping the GUI
 responsive. Capable of processing server response according to a custom
 protocol. Does not perform any GUI drawing, but delegates these tasks via
 ExportStateMonitor and ExportProgressMonitor.
 The spec for this protocol server response is multi-line plain text in KEY|VALUE format where KEY is the message identifier which Bambi knows about and VALUE is the actual message.
The following KEYS are supported:STATUS|OK RECEIVED|42933 PROCESSED|42933 DATE|2013-01-10 13:27:30Example response 2 (error):
STATUS|ERROR RECEIVED|2342 PROCESSED|0 DATE|2013-01-02 09:07:11 MSG|Incomplete Payload. Expected 292342 bytes.
SwingWorker.StateValue| Modifier and Type | Field and Description | 
|---|---|
| static String | CONFIG_PROP_SCRIPTName of the server side script that will receive and process the 
 uploaded image. | 
| static org.slf4j.Logger | log | 
CONFIG_TOOTLIP, exportDef, parentselectorIdconfiguration| Constructor and Description | 
|---|
| MultipartFormPostImageUploader() | 
| Modifier and Type | Method and Description | 
|---|---|
| protected Void | doInBackground() | 
done, export, getTooltipsetSelectorIdinitializeaddPropertyChangeListener, cancel, execute, firePropertyChange, get, get, getProgress, getPropertyChangeSupport, getState, isCancelled, isDone, process, publish, removePropertyChangeListener, run, setProgressclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetSelectorIdinitializepublic static final org.slf4j.Logger log
public static final String CONFIG_PROP_SCRIPT
protected Void doInBackground() throws Exception
doInBackground in class SwingWorker<Void,Void>ExceptionCopyright © 2012-2013 Bambi Software Foundation. All Rights Reserved.