org.exoplatform.gwtframework.commons.rest
Class AutoBeanUnmarshaller<T>

java.lang.Object
  extended by org.exoplatform.gwtframework.commons.rest.AutoBeanUnmarshaller<T>
Type Parameters:
T -
All Implemented Interfaces:
Unmarshallable<T>

public class AutoBeanUnmarshaller<T>
extends java.lang.Object
implements Unmarshallable<T>

Created by The eXo Platform SAS.

Version:
$Id: $
Author:
Vitaly Parfonov

Constructor Summary
AutoBeanUnmarshaller(com.google.web.bindery.autobean.shared.AutoBean<T> autoBean)
           
 
Method Summary
 T getPayload()
          The content of the returned object normally differs before and after unmarshall() but by the contract it should never be null
 void unmarshal(com.google.gwt.http.client.Response response)
          prepares an object from the incoming string
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AutoBeanUnmarshaller

public AutoBeanUnmarshaller(com.google.web.bindery.autobean.shared.AutoBean<T> autoBean)
Method Detail

unmarshal

public void unmarshal(com.google.gwt.http.client.Response response)
               throws UnmarshallerException
Description copied from interface: Unmarshallable
prepares an object from the incoming string

Specified by:
unmarshal in interface Unmarshallable<T>
Throws:
UnmarshallerException

getPayload

public T getPayload()
Description copied from interface: Unmarshallable
The content of the returned object normally differs before and after unmarshall() but by the contract it should never be null

Specified by:
getPayload in interface Unmarshallable<T>
Returns:
the object deserialized from response


Copyright © 2012 eXo Platform SAS. All Rights Reserved.