public interface WebApplication
If the application is running under such an environment then Vm.getWebApplication() will return an object of this type.
Modifier and Type | Interface and Description |
---|---|
static class |
WebApplication.FileSizeNotAllowedException |
static interface |
WebApplication.LocalDirectory |
static interface |
WebApplication.LocalFile |
Modifier and Type | Method and Description |
---|---|
WebApplication.LocalDirectory |
getBaseLocalDirectory()
This returns a LocalDirectory that represents the URL of the full codebase.
|
URL |
getCodeBase() |
boolean |
isOffline() |
boolean |
isWebBrowserSupported() |
File |
openFile(File f) |
File[] |
openFilesDialog(String pathHint,
String[] extensions,
boolean multipleFiles) |
File |
saveFileDialog(String pathHint,
String[] extensions,
InputStream fileData,
String suggestedName) |
boolean |
showDocument(URL url) |
URL getCodeBase()
boolean isOffline()
boolean isWebBrowserSupported()
boolean showDocument(URL url)
File openFile(File f) throws IOException
IOException
File saveFileDialog(String pathHint, String[] extensions, InputStream fileData, String suggestedName) throws IOException
IOException
File[] openFilesDialog(String pathHint, String[] extensions, boolean multipleFiles) throws IOException
IOException
WebApplication.LocalDirectory getBaseLocalDirectory()