public class JUploadContextApplet extends DefaultJUploadContext
DefaultJUploadContext
Constructor and Description |
---|
JUploadContextApplet(JApplet theApplet)
The default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
displayURL(String url,
boolean success)
Just throws a UnsupportedOperationException exception.
|
JApplet |
getApplet()
Just throws a UnsupportedOperationException exception.
|
Cursor |
getCursor()
Just throws a UnsupportedOperationException exception.
|
boolean |
getParameter(String key,
boolean def)
Just throws a UnsupportedOperationException exception.
|
FilePanel.FileListViewMode |
getParameter(String key,
FilePanel.FileListViewMode def)
Just throws a UnsupportedOperationException exception.
|
float |
getParameter(String key,
float def)
Just throws a UnsupportedOperationException exception.
|
int |
getParameter(String key,
int def)
Just throws a UnsupportedOperationException exception.
|
long |
getParameter(String key,
long def)
Just throws a UnsupportedOperationException exception.
|
String |
getParameter(String key,
String def)
Just throws a UnsupportedOperationException exception.
|
String |
jsString(String s)
Generate a js String, that can be written in a javascript expression.
|
String |
normalizeURL(String url)
Generates a valid URL, from a String.
|
void |
readCookieFromNavigator(Vector<String> headers)
Loads cookies, and add them to the specific headers for upload requests.
|
void |
readUserAgentFromNavigator(Vector<String> headers)
Loads userAgent, and add it as a header to the specific headers for upload requests.
|
Cursor |
setCursor(Cursor cursor)
Just throws a UnsupportedOperationException exception.
|
void |
showStatus(String status)
Just throws a UnsupportedOperationException exception.
|
displayDebug, displayErr, displayInfo, displayWarn, getBuildDate, getBuildNumber, getDetailedVersionMessage, getFrame, getLastModified, getLogWindow, getMimeType, getSvnProperties, getSvnRevision, getUploadPanel, getUploadPolicy, getVersion, init, parseBoolean, parseFileListViewMode, parseFloat, parseInt, parseLong, registerUnload, runUnload, setProperty, setWaitCursor, startUpload, unload
public JUploadContextApplet(JApplet theApplet)
theApplet
- The applet is mandatory, to read the applet parameters.public JApplet getApplet()
getApplet
in interface JUploadContext
getApplet
in class DefaultJUploadContext
public String getParameter(String key, String def)
getParameter
in interface JUploadContext
getParameter
in class DefaultJUploadContext
key
- The name of the parameter to fetch.def
- A default value which is used, when the specified parameter is not set.public int getParameter(String key, int def)
getParameter
in interface JUploadContext
getParameter
in class DefaultJUploadContext
key
- The parameter namedef
- The default valuepublic float getParameter(String key, float def)
getParameter
in interface JUploadContext
getParameter
in class DefaultJUploadContext
key
- The parameter namedef
- The default valuepublic long getParameter(String key, long def)
getParameter
in interface JUploadContext
getParameter
in class DefaultJUploadContext
key
- The parameter namedef
- The default valuepublic boolean getParameter(String key, boolean def)
getParameter
in interface JUploadContext
getParameter
in class DefaultJUploadContext
key
- The parameter namedef
- The default valuepublic FilePanel.FileListViewMode getParameter(String key, FilePanel.FileListViewMode def)
getParameter
in interface JUploadContext
getParameter
in class DefaultJUploadContext
key
- The parameter namedef
- The default valuepublic void readCookieFromNavigator(Vector<String> headers)
readCookieFromNavigator
in interface JUploadContext
readCookieFromNavigator
in class DefaultJUploadContext
headers
- The headers, coming from DefaultUploadPolicy
public void readUserAgentFromNavigator(Vector<String> headers)
readUserAgentFromNavigator
in interface JUploadContext
readUserAgentFromNavigator
in class DefaultJUploadContext
headers
- The headers, coming from DefaultUploadPolicy
public Cursor getCursor()
DefaultJUploadContext
getCursor
in interface JUploadContext
getCursor
in class DefaultJUploadContext
JUploadContext.setCursor(Cursor)
public Cursor setCursor(Cursor cursor)
DefaultJUploadContext
setCursor
in interface JUploadContext
setCursor
in class DefaultJUploadContext
cursor
- The cursor to setJUploadContext.setCursor(Cursor)
public void showStatus(String status)
showStatus
in interface JUploadContext
showStatus
in class DefaultJUploadContext
public void displayURL(String url, boolean success)
DefaultJUploadContext
displayURL
in interface JUploadContext
displayURL
in class DefaultJUploadContext
url
- The URL to display, in text format. It will be normalized 'before use'.success
- Indicates whether the upload was a success or not.JUploadContext.displayURL(String, boolean)
public String normalizeURL(String url) throws JUploadException
normalizeURL
in interface JUploadContext
normalizeURL
in class DefaultJUploadContext
url
- A url. Can be a path relative to the current one.JUploadException
public String jsString(String s)
s
- Copyright © 2015. All rights reserved.