com.supermap.services.rest.encoders

Class SceneZipEncoder



  • public class SceneZipEncoder
    extends SceneEncoder
    
    The zip representation of 3D resources Is actually a compressed version of scene.xml
    • Field Summary

    • Constructor Summary

      Constructors 
      Constructor and Description
      SceneZipEncoder() 
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      protected java.util.List<MediaType> createSupportedMediaTypes()
      Creates a supported media type, here is the scenezip type.
      Representation toRepresentation(MediaType mediaType, java.lang.Object content)
      Serializes XML strings into DOM-based XML representations.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SceneZipEncoder

        public SceneZipEncoder()
        
    • Method Detail

      • createSupportedMediaTypes

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

        Creates a supported media type, here is the scenezip type.

        That is, SceneEncoder supports the conversion of the formatted object to the media type.

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

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

        Serializes XML strings into DOM-based XML representations.

        Overrides:
        toRepresentation in class SceneEncoder
        Parameters:
        mediaType - The target media type to be serialized.
        content - The source XML string to be serialized.
        Returns:
        XML Formatting.