com.supermap.services.rest.encoders

Class SuperMapCloudEncoder

  • All Implemented Interfaces:
    javax.ws.rs.ext.MessageBodyWriter<java.lang.Object>


    public class SuperMapCloudEncoder
    extends TemplateEncoder
    

    Supermapcloud expression generator.

    Since:
    6.1.3
    • Constructor Detail

      • SuperMapCloudEncoder

        public SuperMapCloudEncoder()
        
    • Method Detail

      • createSupportedMediaTypes

        protected java.util.List<MediaType> createSupportedMediaTypes()
        

        Creates a supported media type, here is the supermapcloud expression type, “application/supermapcloud”.

        Overrides:
        createSupportedMediaTypes in class TemplateEncoder
        Returns:
        media type list.
      • toRepresentation

        public Representation toRepresentation(MediaType mediaType,
                                      java.lang.Object content)
        

        Serializes a Java object into a representation of a supermapcloud sample type.

        Overrides:
        toRepresentation in class TemplateEncoder
        Parameters:
        mediaType - media type.
        content - The Java object to be serialized.
        Returns:
        Specifies the supermapcloud sample type representation of the object.
        Since:
        6.1.3