Class LinkedDataSerializerFactory

java.lang.Object
com.aquima.interactions.portal.model.factory.LinkedDataSerializerFactory
All Implemented Interfaces:
IDataSerializerFactory

public class LinkedDataSerializerFactory extends Object implements IDataSerializerFactory
  • 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

      public IDataSerializer getSerializer(String mimeType)
      Description copied from interface: IDataSerializerFactory
      Returns a serializer for the specified mime type.
      Specified by:
      getSerializer in interface IDataSerializerFactory
      Parameters:
      mimeType - The mimetype of the serializer, never null or empty.
      Returns:
      The serializer, returns null if no serializer is available for the mimeType.