org.deegree.services.controller.exception.serializer
Interface SerializerProvider
public interface SerializerProvider
A provider can be used to provide multiple exception serializers for multiple services, identified by their
implementation metadata.
- Version:
- $Revision: 31688 $, $Date: 2011-08-30 15:05:12 +0200 (Tue, 30 Aug 2011) $
- Author:
- Andreas Schmitz, last edited by: $Author: mschneider $
init
void init(DeegreeWorkspace workspace)
- Called before anything else, so configuration files can be loaded etc.
- Parameters:
workspace
-
matches
boolean matches(ImplementationMetadata<?> metadata)
- Parameters:
metadata
-
- Returns:
- true, if the provider wants to serialize exceptions for the service implementation specified by its
metadata
getSerializer
<T extends OWSException> ExceptionSerializer<T> getSerializer(ImplementationMetadata<?> metadata,
ExceptionSerializer<T> originalSerializer)
- Type Parameters:
T
- - Parameters:
metadata
- originalSerializer
- the originally selected serializer
- Returns:
- an exception serializer for the specified service. Must not return null if matches(metadata) would return
true.
Copyright © 2011. All Rights Reserved.