public class TLcdWCSCommandDispatcher extends TLcdOGCCommandDispatcher
TLcdOGCCommandDispatcher
,
ALcdOGCCommandDispatcher
REQUEST, SERVICE
Constructor and Description |
---|
TLcdWCSCommandDispatcher() |
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 void |
handleServiceException(ILcdResponse aResponse,
TLcdOGCServiceException aException,
ILcdRequest aRequest)
Handles a service exception.
|
protected void |
handleUnknownRequest(String aRequest)
Called if no request handler can be found for the given request.
|
protected String |
validateService(String aService,
String aRequestType,
ILcdRequest aRequest)
This method allows implementations to validate the "service" parameter of a request.
|
getRequestHandler, handleRequest, registerRequestHandler
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close
protected String validateService(String aService, String aRequestType, ILcdRequest aRequest) throws TLcdOGCServiceException
TLcdOGCCommandDispatcher
validateService
in class TLcdOGCCommandDispatcher
aService
- the service parameter to validate, e.g. WFSaRequestType
- the name of the request type, e.g. GetCapabilitiesaRequest
- the original request from which the service parameter has been extractedaService
or a default value that
should be used if aService
is not correct.TLcdOGCServiceException
- in case the parameter is invalid.protected void handleServiceException(ILcdResponse aResponse, TLcdOGCServiceException aException, ILcdRequest aRequest)
TLcdOGCCommandDispatcher
handleServiceException
in class TLcdOGCCommandDispatcher
aResponse
- The response to which the service exception can be encodedaException
- The service exception to handleaRequest
- The original request that triggered the service exceptionprotected final void handleUnknownRequest(String aRequest) throws TLcdWCSServiceException
TLcdOGCCommandDispatcher
TLcdOGCServiceException.UNKNOWN_REQUEST
; this triggers a call to TLcdOGCCommandDispatcher.handleServiceException(com.luciad.ogc.common.ILcdResponse, com.luciad.ogc.common.TLcdOGCServiceException, com.luciad.ogc.common.ILcdRequest)
, which by default results in the encoding of an XML service exception
report that is sent to the client.handleUnknownRequest
in class TLcdOGCCommandDispatcher
aRequest
- The value of the request parameter REQUEST
TLcdWCSServiceException
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
dispose
in class ALcdOGCCommandDispatcher