Class ALcdOGCCommandDispatcher

All Implemented Interfaces:
ILcdDisposable, AutoCloseable
Direct Known Subclasses:

public abstract class ALcdOGCCommandDispatcher extends Object implements ILcdDisposable
Abstract base class for OGC command dispatchers. A dispatcher accepts GET and POST requests and dispatches them to one of its request handlers.
  • 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.
      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.
    • handleRequest

      public abstract void handleRequest(ILcdRequest aRequest, ILcdResponse aResponse) throws IOException
      Handles a request.
      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.
    • 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 interface ILcdDisposable