Package com.luciad.ogc.common
Class ALcdOGCCommandDispatcher
java.lang.Object
com.luciad.ogc.common.ALcdOGCCommandDispatcher
- All Implemented Interfaces:
ILcdDisposable
,AutoCloseable
- Direct Known Subclasses:
TLcdOGCCommandDispatcher
Abstract base class for OGC command dispatchers. A dispatcher accepts GET
and POST requests and dispatches them to one of its request handlers.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
dispose()
Disposes of this object and allows it to release any system resources that it is holding.abstract void
handleRequest
(ILcdRequest aRequest, ILcdResponse aResponse) Handles a request.abstract void
registerRequestHandler
(String aService, String aRequest, ILcdRequestHandler aHandler) Registers a new request handler with the command dispatcher.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.luciad.util.ILcdDisposable
close
-
Constructor Details
-
ALcdOGCCommandDispatcher
public ALcdOGCCommandDispatcher()
-
-
Method Details
-
registerRequestHandler
public abstract void registerRequestHandler(String aService, String aRequest, ILcdRequestHandler aHandler) Registers a new request handler with the command dispatcher.- Parameters:
aService
- The name of the service for which the request handler is valid (e.g. "WCS").aRequest
- The name of the request the request handler can process (e.g. "GetCapabilities").aHandler
- AnILcdRequestHandler
.
-
handleRequest
Handles a request.- Parameters:
aRequest
- the request which may be a KVP request or a XML request or ...aResponse
- the response to encode the result into.- Throws:
IOException
- if the request handling fails.- Since:
- 2017.0
-
dispose
public void dispose()Description copied from interface: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.- Specified by:
dispose
in interfaceILcdDisposable
-