com.supermap.services.rest.encoders
Class VectorTileEncoder
- java.lang.Object
-
- com.supermap.services.rest.encoders.Encoder
-
- com.supermap.services.rest.encoders.TemplateEncoder
-
- com.supermap.services.rest.encoders.VectorTileEncoder
-
- All Implemented Interfaces:
- javax.ws.rs.ext.MessageBodyWriter<java.lang.Object>
public class VectorTileEncoder extends TemplateEncoder
Vectpr Tile expression generator.
Used to show the map in the form of vector slices example.
-
-
Constructor Summary
Constructors Constructor and Description VectorTileEncoder()
-
Method Summary
Methods Modifier and Type Method and Description protected java.util.List<MediaType>createSupportedMediaTypes()Creates a supported media type, here is the Vector Tile expression type, "application/vt", "application/vectortile".RepresentationtoRepresentation(MediaType mediaType, java.lang.Object content)Serializes a Java object into a representation of a Vector Tile sample type.-
Methods inherited from class com.supermap.services.rest.encoders.TemplateEncoder
createSupportedLanguages, getAllConfigs, getApplicationRootPath, getConfiguration, getLocLogger, getMessageManager, getParentResourceInfos, getProductType, getRepresentation, getServletID, getSize, getTemplateName, isWriteable, setExpectedLanguage, setExtendedUriInfo, setTemplateName, supportedMediaTypes, writeTo
-
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 Vector Tile expression type, "application/vt", "application/vectortile".
- Overrides:
createSupportedMediaTypesin classTemplateEncoder- Returns:
- media type list.
-
toRepresentation
public Representation toRepresentation(MediaType mediaType, java.lang.Object content)Serializes a Java object into a representation of a Vector Tile sample type.
- Overrides:
toRepresentationin classTemplateEncoder- Parameters:
mediaType- media type.obj- The Java object to be serialized.- Returns:
- Specifies the Vector Tile sample type representation of the object.
-
-