|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Panel
java.applet.Applet
wt.clients.util.http.HTTPUploadDownloadApplet
Applet for uploading and downloading files via HTTP. This applet
accepts several initialization parameters. All params are optional.
<param name="hosturl" value="http://www.somewhere.com/somedir/index.html">
<param name="type" value="FILE" or "URL">
<param name="target" value="e:\abcd\efgh\file.txt" or "www.url.com">
<param name="mode" value="UPLOAD" or "DOWNLOAD"> default is "UPLOAD"
<param name="defaultfile" value="*.*">
<param name="debug" value="TRUE" or "FALSE"> default is "FALSE"
Nested Class Summary |
Nested classes inherited from class java.applet.Applet |
Applet.AccessibleApplet |
Nested classes inherited from class java.awt.Panel |
Panel.AccessibleAWTPanel |
Nested classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
Nested classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
static int |
DOWNLOAD
Deprecated. Download mode indicator. |
(package private) HTTPUploadDownloadPanel |
hTTPUploadDownloadPanel1
Deprecated. |
static int |
TARGET_TYPE_FILE
Deprecated. Target type indicator for files. |
static int |
TARGET_TYPE_URL
Deprecated. Target type indicator for urls. |
static int |
UPLOAD
Deprecated. Upload mode indicator |
Fields inherited from class java.applet.Applet |
|
Fields inherited from class java.awt.Panel |
|
Fields inherited from class java.awt.Container |
|
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
HTTPUploadDownloadApplet()
Deprecated. |
Method Summary | |
void |
addHTTPUploadDownloadListener(HTTPUploadDownloadListener l)
Deprecated. Add listeners to upload and download events. |
void |
clear()
Deprecated. |
String |
getDefaultFilename()
Deprecated. Return the default file name. |
boolean |
getGlobalOverwriteWarning()
Deprecated. |
String |
getHostURL()
Deprecated. Return the host url. |
int |
getHTTPResponseCode()
Deprecated. |
int |
getMode()
Deprecated. Return the file upload download model. |
int |
getOperationFailureCode()
Deprecated. |
int |
getOperationStatus()
Deprecated. Return the most recent status. |
String |
getOperationStatusMessage()
Deprecated. Return a user readable status message. |
private String |
getParameter(String paramName,
String defaultParamValue)
Deprecated. |
String |
getTarget()
Deprecated. Return the target path or url. |
int |
getTargetType()
Deprecated. Return the target type to file or url. |
void |
init()
Deprecated. |
void |
performOperation()
Deprecated. Perform the upload or download operation indicated by the mode property. |
void |
removeHTTPUploadDownloadListener(HTTPUploadDownloadListener l)
Deprecated. Remove upload/download listener. |
void |
setDefaultFilename(String defaultName)
Deprecated. Set the default file name. |
void |
setGlobalOverwriteWarning(boolean newValue)
Deprecated. |
boolean |
setHostURL(String urlString)
Deprecated. Set the host url. |
void |
setMode(int mode)
Deprecated. Set the file upload or download mode. |
void |
setTarget(String target)
Deprecated. Set the target path or url. |
void |
setTargetType(int targetType)
Deprecated. Set the target path or url. |
protected void |
setTargetType(String targetType)
Deprecated. Set the target path or url with a string argument. |
Methods inherited from class java.applet.Applet |
destroy, getAccessibleContext, getAppletContext, getAppletInfo, getAudioClip, getAudioClip, getCodeBase, getDocumentBase, getImage, getImage, getLocale, getParameter, getParameterInfo, isActive, newAudioClip, play, play, resize, resize, setStub, showStatus, start, stop |
Methods inherited from class java.awt.Panel |
addNotify |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int UPLOAD
public static final int DOWNLOAD
public static final int TARGET_TYPE_FILE
public static final int TARGET_TYPE_URL
HTTPUploadDownloadPanel hTTPUploadDownloadPanel1
Constructor Detail |
public HTTPUploadDownloadApplet()
Method Detail |
public void init()
public String getHostURL()
public boolean setHostURL(String urlString)
public int getTargetType()
public void setTargetType(int targetType)
targetType
- TARGET_TYPE_FILE or TARGET_TYPE_URL.protected void setTargetType(String targetType)
targetType
- TARGET_TYPE_FILE or TARGET_TYPE_URL.public String getTarget()
public void setTarget(String target)
target
- The target path, e.g. "E:\abcd\test.txt" or "E:\abcd\*.txt", or url.public int getMode()
public void setMode(int mode)
mode
- UploadDownload.DOWNLOAD or UploadDownload.UPLOAD.public String getDefaultFilename()
public void setDefaultFilename(String defaultName)
public boolean getGlobalOverwriteWarning()
public void setGlobalOverwriteWarning(boolean newValue)
public void performOperation()
public int getOperationStatus()
public String getOperationStatusMessage()
public int getOperationFailureCode()
public int getHTTPResponseCode()
public void clear()
public void addHTTPUploadDownloadListener(HTTPUploadDownloadListener l)
UploadDownloadEvent
public void removeHTTPUploadDownloadListener(HTTPUploadDownloadListener l)
private String getParameter(String paramName, String defaultParamValue)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |