com.supermap.services.rest.encoders

Class Flash3DEncoder

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


    public class Flash3DEncoder
    extends TemplateEncoder
    

    Flash3D statement generator.

    Used to show the map in the form of an flash3D example.

    • Constructor Detail

      • Flash3DEncoder

        public Flash3DEncoder()
        
    • Method Detail

      • createSupportedMediaTypes

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

        Creates a supported media type, here is the flash3D expression type, "application / ajax".

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

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

        Serializes a Java object into an flash3D sample type.

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