public class LoadAndZoomHandler extends RequestHandler
load_and_zoom and zoom requests.RequestHandler.RequestHandlerBadRequestException, RequestHandler.RequestHandlerErrorException, RequestHandler.RequestHandlerException, RequestHandler.RequestHandlerForbiddenException| Modifier and Type | Field and Description |
|---|---|
static String |
command
The remote control command name used to load data and zoom.
|
static String |
command2
The remote control command name used to zoom.
|
private double |
maxlat |
private double |
maxlon |
private double |
minlat |
private double |
minlon |
private Set<Long> |
nodes |
private Set<Long> |
relations |
private Set<Long> |
ways |
args, content, contentType, globalConfirmationDefault, globalConfirmationKey, loadInNewLayerDefault, loadInNewLayerKey, myCommand, request, sender| Constructor and Description |
|---|
LoadAndZoomHandler() |
| 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[] |
getUsageExamples() |
String[] |
getUsageExamples(String cmd)
Returns usage examples for the given command.
|
protected void |
handleRequest()
Handle a specific command sent as remote control.
|
protected void |
validateRequest()
Validates the request before attempting to perform it.
|
protected void |
zoom(Bounds bounds) |
checkMandatoryParams, checkPermission, decodeParam, getContent, getContentType, handle, isLoadInNewLayer, parseArgs, setCommand, setSender, setUrlpublic static final String command
public static final String command2
private double minlat
private double maxlat
private double minlon
private double maxlon
public LoadAndZoomHandler()
public String getPermissionMessage()
RequestHandlergetPermissionMessage in class RequestHandlerpublic String[] getMandatoryParams()
getMandatoryParams in class RequestHandlerpublic String[] getOptionalParams()
getOptionalParams in class RequestHandlerpublic String[] getUsageExamples()
getUsageExamples in class RequestHandlerpublic String[] getUsageExamples(String cmd)
RequestHandlergetUsageExamples in class RequestHandlercmd - The command askedprotected void handleRequest() throws RequestHandler.RequestHandlerErrorException
RequestHandlerhandleRequest in class RequestHandlerRequestHandler.RequestHandlerErrorExceptionpublic PermissionPrefWithDefault getPermissionPref()
RequestHandlergetPermissionPref in class RequestHandlerprotected void validateRequest() throws RequestHandler.RequestHandlerBadRequestException
RequestHandlervalidateRequest in class RequestHandlerRequestHandler.RequestHandlerBadRequestException