Package com.luciad.wms.server
Class ALcdWMSCommandDispatcher
java.lang.Object
com.luciad.wms.server.ALcdWMSCommandDispatcher
- All Implemented Interfaces:
ILcdDisposable,AutoCloseable
- Direct Known Subclasses:
TLcdOGCWMSCommandDispatcher
Abstract class for a command dispatcher implementation.
It interprets
HttpServletRequests and sends an appropriate response
on the HttpServletResponse object.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddispose()Disposes of this object and allows it to release any system resources that it is holding.protected TLcdGXYViewBufferedImageDeprecated.This method is not used.protected intReturns the number of views within the pool.protected StringgetParameterIgnoreCase(String aParameterName, jakarta.servlet.http.HttpServletRequest aRequest) Gets the value for a named parameter ignoring the case of the parameter.abstract voidhandleRequest(jakarta.servlet.http.HttpServletRequest aRequest, jakarta.servlet.http.HttpServletResponse aResponse) This method receives a request and handles it.static booleanDeprecated.This method has been deprecated.protected ILcdGXYLayerSubsetListperformSelectionAt(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 aILcdGXYLayerSubsetList.protected ILcdGXYLayerSubsetListperformSelectionInBounds(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 aILcdGXYLayerSubsetList.protected voidreturnGXYView(TLcdGXYViewBufferedImage aGXYView) Releases a givenTLcdGXYViewBufferedImage.static voidsetClassTraceOn(boolean aClassTraceOn) Deprecated.This method has been deprecated.protected voidsetGXYViewPoolSize(int aGXYViewPoolSize) Sets the size of the view pool.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.luciad.util.ILcdDisposable
close
-
Constructor Details
-
ALcdWMSCommandDispatcher
public ALcdWMSCommandDispatcher()
-
-
Method Details
-
handleRequest
public abstract void handleRequest(jakarta.servlet.http.HttpServletRequest aRequest, jakarta.servlet.http.HttpServletResponse aResponse) throws jakarta.servlet.ServletException This method receives a request and handles it.- Parameters:
aRequest- the receivedHttpServletRequest.aResponse- theHttpServletResponseto send the result to.- Throws:
jakarta.servlet.ServletException- for servlet errors.
-
getParameterIgnoreCase
protected String getParameterIgnoreCase(String aParameterName, jakarta.servlet.http.HttpServletRequest aRequest) Gets the value for a named parameter ignoring the case of the parameter.- Parameters:
aParameterName- parameter name .aRequest- request object containing key-value pairs.- Returns:
- the value for the given parameter name ignoring the case of the parameter name.
-
getGXYViewPoolSize
protected int getGXYViewPoolSize()Returns the number of views within the pool.- Returns:
- the number of views within the pool.
- See Also:
-
setGXYViewPoolSize
protected void setGXYViewPoolSize(int aGXYViewPoolSize) Sets the size of the view pool. View pooling may speed up requests for data formats that have a significant amount of initialization work before they appear, such as for example ECDIS. It offers little to no advantage for imagery data as models are normally always pooled, seeILcdModelProvider.- Parameters:
aGXYViewPoolSize- the new amount of views. Set to 0 to disable view pooling.- See Also:
-
getGXYView
Deprecated.This method is not used.Gets a newTLcdGXYViewBufferedImage.- Returns:
- a
TLcdGXYViewBufferedImage.
-
returnGXYView
Releases a givenTLcdGXYViewBufferedImage.- Parameters:
aGXYView- theTLcdGXYViewBufferedImage.
-
performSelectionAt
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 aILcdGXYLayerSubsetList. 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.- Parameters:
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 theILcdGXYLayerobjects being queried.aGXYView- the map view for which the selection is requested.- Returns:
- a list of the layers having actually selected objects.
-
performSelectionInBounds
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 aILcdGXYLayerSubsetList. 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.- Parameters:
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 theILcdGXYLayerobjects being queried.aGXYView- the map view for which the selection is requested.- Returns:
- a list of the layers having actually selected objects.
-
setClassTraceOn
public static void setClassTraceOn(boolean aClassTraceOn) Deprecated.This method has been deprecated. It is recommended to use the standard Java logging framework directly.Enables tracing for all instances of this class. If the argument istruethen all log messages are recorded, otherwise only the informative, warning and error messages are recorded.- Parameters:
aClassTraceOn- if true then all log messages are recorded, otherwise only the informative, warning and error messages are recorded.
-
isClassTraceOn
public static boolean isClassTraceOn()Deprecated.This method has been deprecated. It is recommended to use the standard Java logging framework directly.Returnstrueif tracing is enabled for this class.- Returns:
- true if tracing is enabled for this class, false otherwise.
-
dispose
public void dispose()Description copied from interface:ILcdDisposableDisposes 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.- Specified by:
disposein interfaceILcdDisposable
-