Nuxeo ECM Projects 5.4.3-SNAPSHOT

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
static RemoteException _read(org.codehaus.jackson.JsonParser jp)
           
 Class<RemoteException> getJavaType()
          The marshalled java type
 String getType()
          The type name that appears in serialization
 RemoteException read(org.codehaus.jackson.JsonParser jp)
          Builds and returns a POJO from the JSON object
static RemoteException readException(String content)
           
 void write(org.codehaus.jackson.JsonGenerator jg, RemoteException value)
          Writes the POJO object to the JsonGenerator
 
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:

readException

public static RemoteException readException(String content)
                                     throws Exception
Throws:
Exception

read

public RemoteException read(org.codehaus.jackson.JsonParser jp)
                     throws Exception
Description copied from interface: JsonMarshaller
Builds and returns a POJO from the JSON object

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

_read

public static RemoteException _read(org.codehaus.jackson.JsonParser jp)
                             throws Exception
Throws:
Exception

write

public void write(org.codehaus.jackson.JsonGenerator jg,
                  RemoteException value)
           throws Exception
Description copied from interface: JsonMarshaller
Writes the POJO object to the JsonGenerator

Specified by:
write in interface JsonMarshaller<RemoteException>
Throws:
Exception

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.