public class LeafletEncoder extends TemplateEncoder
Leaflet表述生成器。
| 构造器和说明 | 
|---|
LeafletEncoder()  | 
| 限定符和类型 | 方法和说明 | 
|---|---|
protected java.util.List<MediaType> | 
createSupportedMediaTypes()
创建支持的媒体类型,这里是 Leaflet 表述类型,即“application/leaflet”。 
 | 
Representation | 
toRepresentation(MediaType mediaType, java.lang.Object content)
将一个 Java 对象序列化为 Leaflet 示例类型的表述。 
 | 
computeTemplateName, createSupportedLanguages, createTemplate, getAllConfigs, getApplicationRootPath, getConfiguration, getLocLogger, getMessageManager, getParentResourceInfos, getProductType, getRepresentation, getServletID, getSize, getTemplateName, isWriteable, setExpectedLanguage, setExtendedUriInfo, setTemplateName, supportedMediaTypes, templateName, writeTogetSupportedMediaTypes, isEncodeAllowprotected java.util.List<MediaType> createSupportedMediaTypes()
创建支持的媒体类型,这里是 Leaflet 表述类型,即“application/leaflet”。
createSupportedMediaTypes 在类中 TemplateEncoder
public Representation toRepresentation(MediaType mediaType,
                              java.lang.Object content)
将一个 Java 对象序列化为 Leaflet 示例类型的表述。
toRepresentation 在类中 TemplateEncodermediaType - 媒体类型。content - 要序列化的 Java 对象。