| java.lang.Object org.geoserver.ows.ServiceExceptionHandler
All known Subclasses: org.geoserver.ows.LegacyServiceExceptionHandler, org.geoserver.ows.DefaultServiceExceptionHandler,
ServiceExceptionHandler | abstract public class ServiceExceptionHandler (Code) | | Handles an exception thrown by a service.
A service exception handler must declare the services in which it is capable
of handling exceptions for, see
ServiceExceptionHandler.getServices() .
Instances must be declared in a spring context as follows:
<bean id="myServiceExcepionHandler" class="com.xyz.MyServiceExceptionHandler">
<constructor-arg ref="myService"/>
</bean>
Where myService is the id of another bean somewhere in the
context.
author: Justin Deoliveira, The Open Planning Project |
services | List services(Code) | | The services this handler handles exceptions for.
|
ServiceExceptionHandler | public ServiceExceptionHandler(List services)(Code) | | Constructs the handler with the list of
Service 's that it
handles exceptions for.
Parameters: services - A list of Service. |
ServiceExceptionHandler | public ServiceExceptionHandler(Service service)(Code) | | Constructs the handler for a single
Service that it handles
exceptions for.
Parameters: service - The service to handle exceptions for. |
dumpExceptionMessages | protected void dumpExceptionMessages(ServiceException e, StringBuffer s)(Code) | | Dumps an exception message along all its causes messages (since more often
than not the real cause, such as "unknown property xxx" is a few levels down)
Parameters: e - Parameters: s - |
getServices | public List getServices()(Code) | | The services this handler handles exceptions for. |
handleServiceException | abstract public void handleServiceException(ServiceException exception, Service service, HttpServletRequest request, HttpServletResponse response)(Code) | | Handles the service exception.
Parameters: exception - The service exception. Parameters: service - The service that generated the exception Parameters: request - The original request to which the service generated the exception. Parameters: response - The response to report the exception to. |
|
|