Package eoxserver :: Package services :: Module base :: Class BaseRequestHandler
[hide private]
[frames] | no frames]

Class BaseRequestHandler

source code


Base class for all EOxServer Handler Implementations. There are two private methods that have to be overridden by child classes. .. method:: _handleException(req, exception) Abstract method which must be overridden by child classes to provide specific exception reports. If the exception report cannot be generated in this specific handler, the exception should be re-raised. This is also the default behaviour. The method expects an :class:`~.OWSRequest` object ``req`` and the exception that has been raised as input. It should return a :class:`~.Response` object containing the exception report. .. method:: _processRequest(req) Abstract method which must be overridden to provide the specific request handling logic. Should not be invoked from external code, use the :meth:`handle` method instead. It expects an :class:`~.OWSRequest` object ``req`` as input and should return a :class:`~.Response` object containing the response to the request. The default method does not do anything.
Instance Methods [hide private]
 
_handleException(self, req, exception) source code
 
_processRequest(self, req) source code
 
handle(self, req)
Basic request handling method which should be invoked from external code.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

handle(self, req)

source code 
Basic request handling method which should be invoked from external code. This method invokes the :meth:`_processRequest` method and returns the resulting :class:`~.Response` object unless an exception is raised. In the latter case :meth:`_handleException` is called and the appropriate response is returned.