com.supermap.services.rest.encoders
Class WKTEncoder
- java.lang.Object
-
- com.supermap.services.rest.encoders.Encoder
-
- com.supermap.services.rest.encoders.WKTEncoder
-
public class WKTEncoder extends Encoder
Projection Coordinate System KKT serializer. Is responsible for serializing a projection coordinate system object object into a WKT string.
-
-
Constructor Summary
Constructors Constructor and Description WKTEncoder()
-
Method Summary
Methods Modifier and Type Method and Description java.util.List<MediaType>createSupportedMediaTypes()Creates a supported media type, here is the WKT expression type, “application/wkt”.RepresentationtoRepresentation(MediaType mediaType, java.lang.Object obj)Serializes a Java object into a expression.-
Methods inherited from class com.supermap.services.rest.encoders.Encoder
getSupportedMediaTypes, isEncodeAllow
-
-
-
-
Method Detail
-
createSupportedMediaTypes
public java.util.List<MediaType> createSupportedMediaTypes()
Creates a supported media type, here is the WKT expression type, “application/wkt”.
- Specified by:
createSupportedMediaTypesin classEncoder- Returns:
- media type list.
-
toRepresentation
public Representation toRepresentation(MediaType mediaType, java.lang.Object obj)Serializes a Java object into a expression.
- Specified by:
toRepresentationin classEncoder- Parameters:
mediaType- The format of the presentation, ie the media type.obj- The Java object to be serialized.- Returns:
- WKT statement for Java objects.
-
-