public class LocalFileN2NMToadlet extends LocalFileBrowserToadlet
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PATH |
static java.lang.String |
POST_TO |
changeDir, core, selectDir, selectFile
HANDLE_METHOD_PREFIX
Constructor and Description |
---|
LocalFileN2NMToadlet(NodeClientCore core,
HighLevelSimpleClient highLevelSimpleClient) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
allowedDir(java.io.File path)
Whether the directory is allowed for the purposes of the specific browser.
|
protected void |
createSelectDirectoryButton(HTMLNode fileRow,
java.lang.String path,
HTMLNode persistence)
Renders directory selection button with selectDir and filenameField() set.
|
java.lang.String |
path() |
protected java.util.Hashtable<java.lang.String,java.lang.String> |
persistenceFields(java.util.Hashtable<java.lang.String,java.lang.String> set)
Performs sanity checks and generates parameter persistence fields.
|
protected java.lang.String |
postTo() |
protected java.lang.String |
startingDir()
Determines the appropriate directory to start out in for the given browser.
|
createSelectFileButton, defaultDownloadDir, defaultUploadDir, filenameField, handleMethodGET, handleMethodPOST
addHomepageLink, allowPOSTWithoutPassword, findSupportedMethods, getClientImpl, sendErrorPage, sendErrorPage, sendErrorPage, showAsToadlet, showAsToadlet, writeHTMLReply, writeHTMLReply, writeHTMLReply, writeInternalError, writeReply, writeReply, writeReply, writeReply, writeReply, writeReply, writeTemporaryRedirect, writeTextReply, writeTextReply
public static final java.lang.String PATH
public static final java.lang.String POST_TO
public LocalFileN2NMToadlet(NodeClientCore core, HighLevelSimpleClient highLevelSimpleClient)
public java.lang.String path()
path
in class LocalFileBrowserToadlet
protected java.lang.String postTo()
postTo
in class LocalFileBrowserToadlet
protected java.lang.String startingDir()
LocalFileBrowserToadlet
startingDir
in class LocalFileBrowserToadlet
protected boolean allowedDir(java.io.File path)
LocalFileBrowserToadlet
allowedDir
in class LocalFileBrowserToadlet
path
- The path to check permissions for.protected void createSelectDirectoryButton(HTMLNode fileRow, java.lang.String path, HTMLNode persistence)
LocalFileBrowserToadlet
createSelectDirectoryButton
in class LocalFileBrowserToadlet
fileRow
- Node to add the button to.path
- Path to set the filenameField() field to.persistence
- Additional persistence fields to include.protected java.util.Hashtable<java.lang.String,java.lang.String> persistenceFields(java.util.Hashtable<java.lang.String,java.lang.String> set)
LocalFileBrowserToadlet
persistenceFields
in class LocalFileBrowserToadlet
set
- page parts/parameters