public interface OutputSerializable extends Outputable
OutputableALL_KNOWN_FORMATS, ATOM, ATOM_EXTENSIONS, ATOM_MIME_TYPE, FORM, FORM_EXTENSIONS, FORM_MIME_TYPE, HTML, HTML_EXTENSIONS, HTML_MIME_TYPE, JSON, JSON_EXTENSIONS, JSON_MIME_TYPE, JSONP, JSONP_EXTENSIONS, JSONP_MIME_TYPE, RSS, RSS_EXTENSIONS, RSS_MIME_TYPE, TXT, TXT_EXTENSIONS, TXT_MIME_TYPE, UTF_8, XML, XML_EXTENSIONS, XML_MIME_TYPE| Modifier and Type | Method and Description |
|---|---|
Object |
makeSerializableObject(EntityReference ref,
Object entity)
Take the entity and convert it to whatever objects (Map, List, String, etc.) that you want to output,
this will be called every time that an entity is about to serialized but only if the type
of object matches that of the entities handled by your provider
|
getHandledOutputFormatsgetEntityPrefixObject makeSerializableObject(EntityReference ref, Object entity)
the - entity reference for the current entityentity - an object of the type handled by your providerCopyright © 2007–2020 Sakai Project. All rights reserved.