public class SilverLightEncoder extends TemplateEncoder
Silverlight expression generator.
Used to map the map in Silverlight example.
| Constructor and Description |
|---|
SilverLightEncoder() |
| Modifier and Type | Method and Description |
|---|---|
protected java.util.List<MediaType> |
createSupportedMediaTypes()
Creates a supported media type, here is the Silverlight expression type, “application/silverlight”.
|
Representation |
toRepresentation(MediaType mediaType, java.lang.Object content)
Serializes a Java object into a representation of a Silverlight sample type.
|
createSupportedLanguages, getAllConfigs, getApplicationRootPath, getConfiguration, getLocLogger, getMessageManager, getParentResourceInfos, getProductType, getRepresentation, getServletID, getSize, getTemplateName, isWriteable, setExpectedLanguage, setExtendedUriInfo, setTemplateName, supportedMediaTypes, writeTogetSupportedMediaTypes, isEncodeAllowprotected java.util.List<MediaType> createSupportedMediaTypes()
Creates a supported media type, here is the Silverlight expression type, “application/silverlight”.
createSupportedMediaTypes in class TemplateEncoder
public Representation toRepresentation(MediaType mediaType,
java.lang.Object content)
Serializes a Java object into a representation of a Silverlight sample type.
toRepresentation in class TemplateEncodermediaType - media type.content - The Java object to be serialized.