Class NuxeoOAuth2TokenWriter
java.lang.Object
org.nuxeo.ecm.core.io.marshallers.json.AbstractJsonWriter<NuxeoOAuth2Token>
org.nuxeo.ecm.core.io.marshallers.json.ExtensibleEntityJsonWriter<NuxeoOAuth2Token>
org.nuxeo.ecm.platform.oauth2.tokens.NuxeoOAuth2TokenWriter
- All Implemented Interfaces:
Marshaller<NuxeoOAuth2Token>,Writer<NuxeoOAuth2Token>
@Setup(mode=SINGLETON,
priority=2000)
public class NuxeoOAuth2TokenWriter
extends ExtensibleEntityJsonWriter<NuxeoOAuth2Token>
- Since:
- 9.2
-
Field Summary
FieldsFields inherited from class org.nuxeo.ecm.core.io.marshallers.json.AbstractJsonWriter
ctx, registry -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidwriteEntityBody(NuxeoOAuth2Token token, com.fasterxml.jackson.core.JsonGenerator jg) Implement this method to write the entity body.Methods inherited from class org.nuxeo.ecm.core.io.marshallers.json.ExtensibleEntityJsonWriter
extend, writeMethods inherited from class org.nuxeo.ecm.core.io.marshallers.json.AbstractJsonWriter
accept, getGenerator, write, writeEntity, writeEntity, writeEntityField, writeSerializable, writeSerializableField, writeSerializableListField, writeSerializableMapField
-
Field Details
-
ENTITY_TYPE
- See Also:
-
DATE_FORMAT
- See Also:
-
-
Constructor Details
-
NuxeoOAuth2TokenWriter
public NuxeoOAuth2TokenWriter()
-
-
Method Details
-
writeEntityBody
protected void writeEntityBody(NuxeoOAuth2Token token, com.fasterxml.jackson.core.JsonGenerator jg) throws IOException Description copied from class:ExtensibleEntityJsonWriterImplement this method to write the entity body.- Specified by:
writeEntityBodyin classExtensibleEntityJsonWriter<NuxeoOAuth2Token>- Parameters:
token- The Java entity.jg- AJsonGeneratorready to write your entity as Json.- Throws:
IOException
-