public abstract class ALcdWMSCommandDispatcher extends Object implements ILcdDisposable
HttpServletRequests
and sends an appropriate response
on the HttpServletResponse
object.Constructor and Description |
---|
ALcdWMSCommandDispatcher() |
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Disposes of this object and allows it to release any system resources that it is holding.
|
protected TLcdGXYViewBufferedImage |
getGXYView()
Deprecated.
This method is not used.
|
protected int |
getGXYViewPoolSize()
Returns the number of views within the pool.
|
protected String |
getParameterIgnoreCase(String aParameterName,
javax.servlet.http.HttpServletRequest aRequest)
Gets the value for a named parameter ignoring the case of the parameter.
|
abstract void |
handleRequest(javax.servlet.http.HttpServletRequest aRequest,
javax.servlet.http.HttpServletResponse aResponse)
This method receives a request and handles it.
|
static boolean |
isClassTraceOn()
Deprecated.
This method has been deprecated. It is recommended to use the
standard Java logging framework directly.
|
protected ILcdGXYLayerSubsetList |
performSelectionAt(int aX,
int aY,
int aSensitivity,
int aFeatureCount,
Vector aGXYLayerList,
ILcdGXYView aGXYView)
Performs a selection on the given view and set of layers, and returns the selected objects
as a
ILcdGXYLayerSubsetList . |
protected ILcdGXYLayerSubsetList |
performSelectionInBounds(int aX,
int aY,
int aSelectionWidth,
int aSelectionHeight,
int aFeatureCount,
Vector aGXYLayerList,
ILcdGXYView aGXYView)
Performs a selection on the given view and set of layers, and returns the selected objects
as a
ILcdGXYLayerSubsetList . |
protected void |
returnGXYView(TLcdGXYViewBufferedImage aGXYView)
Releases a given
TLcdGXYViewBufferedImage . |
static void |
setClassTraceOn(boolean aClassTraceOn)
Deprecated.
This method has been deprecated. It is recommended to use the
standard Java logging framework directly.
|
protected void |
setGXYViewPoolSize(int aGXYViewPoolSize)
Sets the size of the view pool.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close
public abstract void handleRequest(javax.servlet.http.HttpServletRequest aRequest, javax.servlet.http.HttpServletResponse aResponse) throws javax.servlet.ServletException
aRequest
- the received HttpServletRequest
.aResponse
- the HttpServletResponse
to send the result to.javax.servlet.ServletException
- for servlet errors.protected String getParameterIgnoreCase(String aParameterName, javax.servlet.http.HttpServletRequest aRequest)
aParameterName
- parameter name .aRequest
- request object containing key-value pairs.protected int getGXYViewPoolSize()
setGXYViewPoolSize(int)
protected void setGXYViewPoolSize(int aGXYViewPoolSize)
ILcdModelProvider
.aGXYViewPoolSize
- the new amount of views. Set to 0 to disable view pooling.getGXYViewPoolSize()
protected TLcdGXYViewBufferedImage getGXYView()
TLcdGXYViewBufferedImage
.TLcdGXYViewBufferedImage
.protected void returnGXYView(TLcdGXYViewBufferedImage aGXYView)
TLcdGXYViewBufferedImage
.aGXYView
- the TLcdGXYViewBufferedImage
.protected ILcdGXYLayerSubsetList performSelectionAt(int aX, int aY, int aSensitivity, int aFeatureCount, Vector aGXYLayerList, ILcdGXYView aGXYView)
ILcdGXYLayerSubsetList
. The selection is defined by a pixel position
aX,aY, and a sensitivity in pixels. All objects that interact with a square selection
area of size 2 * aSensitivity centered around the given pixel position are selected.aX
- the x value of the selection position on the view.aY
- the y value of the selection position on the view.aSensitivity
- the sensitivity to be considered for the selection positionaFeatureCount
- the maximum number of objects (features) to be selected.aGXYLayerList
- a vector containing the ILcdGXYLayer
objects being queried.aGXYView
- the map view for which the selection is requested.protected ILcdGXYLayerSubsetList performSelectionInBounds(int aX, int aY, int aSelectionWidth, int aSelectionHeight, int aFeatureCount, Vector aGXYLayerList, ILcdGXYView aGXYView)
ILcdGXYLayerSubsetList
. The selection is defined by pixel bounds,
specified by its upper left location (aX,aY) and its width and height
(aSelectionWidth,aSelectionHeight). By default, objects are only selected if
their visual representation falls within these bounds.aX
- the x value of the upper left location of the selection rectangle.aY
- the y value of the upper left location of the selection rectangle.aSelectionWidth
- the width of the selection rectangle.aSelectionHeight
- the height of the selection rectangle.aFeatureCount
- the maximum number of objects (features) to be selected.aGXYLayerList
- vector containing the ILcdGXYLayer
objects being queried.aGXYView
- the map view for which the selection is requested.public static void setClassTraceOn(boolean aClassTraceOn)
true
then all log messages are recorded, otherwise only
the informative, warning and error messages are recorded.aClassTraceOn
- if true then all log messages are recorded,
otherwise only the informative, warning and error messages are recorded.public static boolean isClassTraceOn()
true
if tracing is enabled for this class.public void dispose()
ILcdDisposable
Disposes of this object and allows it to release any system resources that it is holding.
The result of calling any other method (other than finalize
) on this object subsequent to a call to
this method is undefined.
dispose
in interface ILcdDisposable