public abstract class ALcdOGCCommandDispatcher extends Object implements ILcdDisposable
Constructor and Description |
---|
ALcdOGCCommandDispatcher() |
Modifier and Type | Method and Description |
---|---|
void |
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close
public abstract void registerRequestHandler(String aService, String aRequest, ILcdRequestHandler aHandler)
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
- An ILcdRequestHandler
.public abstract void handleRequest(ILcdRequest aRequest, ILcdResponse aResponse) throws IOException
aRequest
- the request which may be a KVP request or a XML request or ...aResponse
- the response to encode the result into.IOException
- if the request handling fails.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