Nuxeo Enterprise Platform 5.4

org.nuxeo.ecm.automation.client.jaxrs.spi.marshallers
Class ExceptionMarshaller

java.lang.Object
  extended by org.nuxeo.ecm.automation.client.jaxrs.spi.marshallers.ExceptionMarshaller
All Implemented Interfaces:
JsonMarshaller<RemoteException>

public class ExceptionMarshaller
extends Object
implements JsonMarshaller<RemoteException>

Author:
matic

Constructor Summary
ExceptionMarshaller()
           
 
Method Summary
 Class<RemoteException> getJavaType()
          The marshalled java type
 String getReference(RemoteException info)
          Gets an input reference from the POJO object that can be fetched server side.
 String getType()
          The type name that appears in serialization
 RemoteException read(net.sf.json.JSONObject json)
          Builds and returns a POJO from the JSON object
static RemoteException readException(String content)
           
 void write(net.sf.json.JSONObject object, RemoteException value)
          Writes in the JSON object the POJO's data
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExceptionMarshaller

public ExceptionMarshaller()
Method Detail

getType

public String getType()
Description copied from interface: JsonMarshaller
The type name that appears in serialization

Specified by:
getType in interface JsonMarshaller<RemoteException>
Returns:

getJavaType

public Class<RemoteException> getJavaType()
Description copied from interface: JsonMarshaller
The marshalled java type

Specified by:
getJavaType in interface JsonMarshaller<RemoteException>
Returns:

getReference

public String getReference(RemoteException info)
Description copied from interface: JsonMarshaller
Gets an input reference from the POJO object that can be fetched server side.

Specified by:
getReference in interface JsonMarshaller<RemoteException>
Returns:

read

public RemoteException read(net.sf.json.JSONObject json)
Description copied from interface: JsonMarshaller
Builds and returns a POJO from the JSON object

Specified by:
read in interface JsonMarshaller<RemoteException>
Returns:

write

public void write(net.sf.json.JSONObject object,
                  RemoteException value)
Description copied from interface: JsonMarshaller
Writes in the JSON object the POJO's data

Specified by:
write in interface JsonMarshaller<RemoteException>

readException

public static RemoteException readException(String content)

Nuxeo Enterprise Platform 5.4

Copyright © 2011 Nuxeo SAS. All Rights Reserved.