com.supermap.services.rest.encoders
Class SceneZipEncoder
- java.lang.Object
-
- com.supermap.services.rest.encoders.Encoder
-
- com.supermap.services.rest.encoders.SceneEncoder
-
- com.supermap.services.rest.encoders.SceneZipEncoder
-
public class SceneZipEncoder extends SceneEncoder
The zip representation of 3D resources Is actually a compressed version of scene.xml
-
-
Field Summary
-
Fields inherited from class com.supermap.services.rest.encoders.SceneEncoder
message
-
-
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.RepresentationtoRepresentation(MediaType mediaType, java.lang.Object content)Serializes XML strings into DOM-based XML representations.-
Methods inherited from class com.supermap.services.rest.encoders.SceneEncoder
getSceneXML
-
Methods inherited from class com.supermap.services.rest.encoders.Encoder
getSupportedMediaTypes, isEncodeAllow
-
-
-
-
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:
createSupportedMediaTypesin classSceneEncoder- Returns:
- media type list.
-
toRepresentation
public Representation toRepresentation(MediaType mediaType, java.lang.Object content)Serializes XML strings into DOM-based XML representations.
- Overrides:
toRepresentationin classSceneEncoder- Parameters:
mediaType- The target media type to be serialized.content- The source XML string to be serialized.- Returns:
- XML Formatting.
-
-