org.exoplatform.gwtframework.commons.rest
Interface Unmarshallable<T>

All Known Implementing Classes:
AutoBeanUnmarshaller, LocationUnmarshaller

public interface Unmarshallable<T>

Created by The eXo Platform SAS .

Version:
$Id: $ deserializer for response's body. By the contract: getResult() should never return null (should be initialized in impl's constructor and return the same object (with different content) before and after unmarshal

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
 

Method Detail

unmarshal

void unmarshal(com.google.gwt.http.client.Response response)
               throws UnmarshallerException
prepares an object from the incoming string

Parameters:
body -
Throws:
UnmarshallerException

getPayload

T getPayload()
The content of the returned object normally differs before and after unmarshall() but by the contract it should never be null

Returns:
the object deserialized from response


Copyright © 2012 eXo Platform SAS. All Rights Reserved.