public class ImportHandler extends RequestHandler
RequestHandler.RequestHandlerBadRequestException, RequestHandler.RequestHandlerErrorException, RequestHandler.RequestHandlerException, RequestHandler.RequestHandlerForbiddenException| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
command
The remote control command name used to import data.
|
private java.util.Collection<DownloadTask> |
suitableDownloadTasks |
private java.net.URL |
url |
args, content, contentType, globalConfirmationDefault, globalConfirmationKey, loadInNewLayerDefault, loadInNewLayerKey, myCommand, request, sender| Constructor and Description |
|---|
ImportHandler() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String[] |
getMandatoryParams() |
java.lang.String[] |
getOptionalParams() |
java.lang.String |
getPermissionMessage()
Get a specific message to ask the user for permission for the operation
requested via remote control.
|
PermissionPrefWithDefault |
getPermissionPref()
Get a PermissionPref object containing the name of a special permission
preference to individually allow the requested operation and an error
message to be displayed when a disabled operation is requested.
|
java.lang.String |
getUsage() |
java.lang.String[] |
getUsageExamples() |
protected void |
handleRequest()
Handle a specific command sent as remote control.
|
protected void |
parseArgs()
Parse the request parameters as key=value pairs.
|
protected void |
validateRequest()
Validates the request before attempting to perform it.
|
checkMandatoryParams, checkPermission, decodeParam, getContent, getContentType, getUsageExamples, handle, isLoadInNewLayer, setCommand, setSender, setUrlpublic static final java.lang.String command
private java.net.URL url
private java.util.Collection<DownloadTask> suitableDownloadTasks
public ImportHandler()
protected void handleRequest() throws RequestHandler.RequestHandlerErrorException
RequestHandlerhandleRequest in class RequestHandlerRequestHandler.RequestHandlerErrorExceptionpublic java.lang.String[] getMandatoryParams()
getMandatoryParams in class RequestHandlerpublic java.lang.String[] getOptionalParams()
getOptionalParams in class RequestHandlerpublic java.lang.String getUsage()
getUsage in class RequestHandlerpublic java.lang.String[] getUsageExamples()
getUsageExamples in class RequestHandlerpublic java.lang.String getPermissionMessage()
RequestHandlergetPermissionMessage in class RequestHandlerpublic PermissionPrefWithDefault getPermissionPref()
RequestHandlergetPermissionPref in class RequestHandlerprotected void parseArgs()
RequestHandlerthis.args.
Can be overridden by subclass.parseArgs in class RequestHandlerprotected void validateRequest() throws RequestHandler.RequestHandlerBadRequestException
RequestHandlervalidateRequest in class RequestHandlerRequestHandler.RequestHandlerBadRequestException