public class LoadDataHandler extends RequestHandler
Modifier and Type | Class and Description |
---|---|
protected class |
LoadDataHandler.LoadDataTask |
RequestHandler.RawURLParseRequestHandler, RequestHandler.RequestHandlerBadRequestException, RequestHandler.RequestHandlerErrorException, RequestHandler.RequestHandlerException, RequestHandler.RequestHandlerForbiddenException
Modifier and Type | Field and Description |
---|---|
static String |
command
The remote control command name used to import data.
|
private String |
data
Holds the data input string
|
private DataSet |
dataSet
Holds the parsed data set
|
private static String |
OSM_MIME_TYPE |
args, content, contentType, globalConfirmationDefault, globalConfirmationKey, loadInNewLayerDefault, loadInNewLayerKey, myCommand, request, sender
Constructor and Description |
---|
LoadDataHandler() |
Modifier and Type | Method and Description |
---|---|
String[] |
getMandatoryParams() |
String[] |
getOptionalParams() |
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.
|
String |
getUsage() |
String[] |
getUsageExamples() |
protected void |
handleRequest()
Handle a specific command sent as remote control.
|
protected void |
validateRequest()
Validates the request before attempting to perform it.
|
checkMandatoryParams, checkPermission, getContent, getContentType, getRequestParameter, getUsageExamples, handle, isLoadInNewLayer, parseArgs, setCommand, setSender, setUrl
private static final String OSM_MIME_TYPE
public static final String command
public LoadDataHandler()
protected void handleRequest() throws RequestHandler.RequestHandlerErrorException
RequestHandler
handleRequest
in class RequestHandler
RequestHandler.RequestHandlerErrorException
- if an error occurs while processing requestpublic String[] getMandatoryParams()
getMandatoryParams
in class RequestHandler
public String[] getOptionalParams()
getOptionalParams
in class RequestHandler
public String getUsage()
getUsage
in class RequestHandler
public String[] getUsageExamples()
getUsageExamples
in class RequestHandler
public String getPermissionMessage()
RequestHandler
getPermissionMessage
in class RequestHandler
public PermissionPrefWithDefault getPermissionPref()
RequestHandler
getPermissionPref
in class RequestHandler
protected void validateRequest() throws RequestHandler.RequestHandlerBadRequestException
RequestHandler
validateRequest
in class RequestHandler
RequestHandler.RequestHandlerBadRequestException
- if request is invalid