com.supermap.services.rest.encoders
Class SceneEncoder
- java.lang.Object
-
- com.supermap.services.rest.encoders.Encoder
-
- com.supermap.services.rest.encoders.SceneEncoder
-
- Direct Known Subclasses:
- SceneZipEncoder
public class SceneEncoder extends Encoder
Scene object serializer.
Used to serialize the XML string that identifies the scenario into an XML format.
-
-
Field Summary
Fields Modifier and Type Field and Description protected ResourceManagermessage
-
Constructor Summary
Constructors Constructor and Description SceneEncoder()
-
Method Summary
Methods Modifier and Type Method and Description protected java.util.List<MediaType>createSupportedMediaTypes()Creates a supported media type, here is the XML type.protected java.lang.StringgetSceneXML(java.lang.Object content)RepresentationtoRepresentation(MediaType mediaType, java.lang.Object content)Serializes XML strings into DOM-based XML representations.-
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 XML type.
That is, SceneEncoder supports the conversion of the formatted object to the media type.
- Specified by:
createSupportedMediaTypesin classEncoder- Returns:
- media type list.
-
toRepresentation
public Representation toRepresentation(MediaType mediaType, java.lang.Object content)Serializes XML strings into DOM-based XML representations.
- Specified by:
toRepresentationin classEncoder- Parameters:
mediaType- The target media type to be serialized.content- The source XML string to be serialized.- Returns:
- XML Formatting.
-
getSceneXML
protected java.lang.String getSceneXML(java.lang.Object content)
-
-