Class LinkedDataSerializerFactory
java.lang.Object
com.aquima.interactions.portal.model.factory.LinkedDataSerializerFactory
- All Implemented Interfaces:
IDataSerializerFactory
-
Method Summary
Modifier and TypeMethodDescriptionstatic IDataSerializerFactory
createFor
(IDataSerializerFactory factory, IDataSerializerFactory defaultFactory) This method returns a container factory implementation that combines both the container factories that are passed to this method.getSerializer
(String mimeType) Returns a serializer for the specified mime type.
-
Method Details
-
createFor
public static IDataSerializerFactory createFor(IDataSerializerFactory factory, IDataSerializerFactory defaultFactory) This method returns a container factory implementation that combines both the container factories that are passed to this method.- Parameters:
factory
- The serializer factory that should be used first when requesting a container (optional).defaultFactory
- The serializer factory that should be used when the first did not supply a container implementation (mandatory).- Returns:
- a container factory implementation that combines both the container factories that are passed to this method.
-
getSerializer
Description copied from interface:IDataSerializerFactory
Returns a serializer for the specified mime type.- Specified by:
getSerializer
in interfaceIDataSerializerFactory
- Parameters:
mimeType
- The mimetype of the serializer, never null or empty.- Returns:
- The serializer, returns null if no serializer is available for the mimeType.
-