public class ImageryHandler extends RequestHandler.RawURLParseRequestHandler
/imagery?title=...&type=...&url=...
.RequestHandler.PermissionCache, RequestHandler.RawURLParseRequestHandler, 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 add an imagery layer.
|
args, content, contentType, globalConfirmationDefault, globalConfirmationKey, loadInNewLayerDefault, loadInNewLayerKey, myCommand, PERMISSIONS, request, sender, SPLITTER_COMMA, SPLITTER_SEMIC
Constructor and Description |
---|
ImageryHandler() |
Modifier and Type | Method and Description |
---|---|
protected ImageryInfo |
buildImageryInfo() |
protected static ImageryInfo |
findBingEntry() |
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 |
validateRequest()
Validates the request before attempting to perform it.
|
parseArgs
checkMandatoryParams, checkPermission, getContent, getContentType, getDownloadParams, getRequestParameter, getUsageExamples, handle, setCommand, setSender, setUrl, splitArg, validateDownloadParams
public static final java.lang.String command
public ImageryHandler()
public java.lang.String getPermissionMessage()
RequestHandler
getPermissionMessage
in class RequestHandler
public java.lang.String[] getMandatoryParams()
getMandatoryParams
in class RequestHandler
public java.lang.String[] getOptionalParams()
getOptionalParams
in class RequestHandler
public PermissionPrefWithDefault getPermissionPref()
RequestHandler
getPermissionPref
in class RequestHandler
protected static ImageryInfo findBingEntry()
protected ImageryInfo buildImageryInfo()
protected void handleRequest() throws RequestHandler.RequestHandlerErrorException
RequestHandler
handleRequest
in class RequestHandler
RequestHandler.RequestHandlerErrorException
- if an error occurs while processing requestprotected void validateRequest() throws RequestHandler.RequestHandlerBadRequestException
RequestHandler
validateRequest
in class RequestHandler
RequestHandler.RequestHandlerBadRequestException
- if request is invalidpublic java.lang.String getUsage()
getUsage
in class RequestHandler
public java.lang.String[] getUsageExamples()
getUsageExamples
in class RequestHandler