Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.automation.client.jaxrs.spi
Interface JsonMarshaller<T>

Type Parameters:
T -
All Known Implementing Classes:
DocumentMarshaller, DocumentsMarshaller, ExceptionMarshaller, LoginMarshaller

public interface JsonMarshaller<T>

Plugs in automation client new input/output marshalling logic.

Author:
matic

Method Summary
 Class<T> getJavaType()
          The marshalled java type
 String getType()
          The type name that appears in serialization
 T read(org.codehaus.jackson.JsonParser jp)
          Builds and returns a POJO from the JSON object
 void write(org.codehaus.jackson.JsonGenerator jg, T value)
          Writes the POJO object to the JsonGenerator
 

Method Detail

getType

String getType()
The type name that appears in serialization

Returns:

getJavaType

Class<T> getJavaType()
The marshalled java type

Returns:

read

T read(org.codehaus.jackson.JsonParser jp)
       throws Exception
Builds and returns a POJO from the JSON object

Parameters:
json -
Returns:
Throws:
Exception

write

void write(org.codehaus.jackson.JsonGenerator jg,
           T value)
           throws Exception
Writes the POJO object to the JsonGenerator

Parameters:
o -
value -
Throws:
Exception

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.