public class TLcdWFSCommandDispatcher extends TLcdOGCCommandDispatcher
TLcdOGCCommandDispatcher
,
ALcdOGCCommandDispatcher
REQUEST, SERVICE
Constructor and Description |
---|
TLcdWFSCommandDispatcher() |
Modifier and Type | Method and Description |
---|---|
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
dispose
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close
protected final void handleUnknownRequest(String aRequest) throws TLcdWFSServiceException
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
TLcdWFSServiceException
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 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.