@Setup(mode=SINGLETON, priority=2000) public class AuthenticationTokenWriter extends AbstractJsonWriter<AuthenticationToken>
AuthenticationToken
to Json.Modifier and Type | Field and Description |
---|---|
static String |
ENTITY_TYPE |
ctx, registry
Constructor and Description |
---|
AuthenticationTokenWriter() |
Modifier and Type | Method and Description |
---|---|
void |
write(AuthenticationToken token,
org.codehaus.jackson.JsonGenerator jg)
Implement this method to writes the entity in the provided
JsonGenerator . |
accept, getGenerator, write, writeEntity, writeEntity, writeEntityField
public static final String ENTITY_TYPE
public AuthenticationTokenWriter()
public void write(AuthenticationToken token, org.codehaus.jackson.JsonGenerator jg) throws IOException
AbstractJsonWriter
JsonGenerator
.
This method implementation can use injected properties.
The JsonGenerator
's flushing is done by this abstract class, it's also not not necessary to flush it. Do
not close the provided JsonGenerator
. It may be used is another marshaller calling this one.
write
in class AbstractJsonWriter<AuthenticationToken>
token
- The entity to marshall as Json.jg
- The JsonGenerator
used to produce Json output.IOException
Copyright © 2018 Nuxeo. All rights reserved.