org.exoplatform.gwtframework.commons.rest
Class LocationUnmarshaller

java.lang.Object
  extended by org.exoplatform.gwtframework.commons.rest.LocationUnmarshaller
All Implemented Interfaces:
Unmarshallable<java.lang.StringBuilder>

public class LocationUnmarshaller
extends java.lang.Object
implements Unmarshallable<java.lang.StringBuilder>

Unmarshaller for "Location" HTTP Header. Uses in AsyncRequest for run REST Service Asynchronous

Version:
$Id: Sep 16, 2011 evgen $
Author:
Evgen Vidolob

Constructor Summary
LocationUnmarshaller(java.lang.StringBuilder result)
           
 
Method Summary
 java.lang.StringBuilder 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

LocationUnmarshaller

public LocationUnmarshaller(java.lang.StringBuilder result)
Parameters:
result -
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<java.lang.StringBuilder>
Throws:
UnmarshallerException
See Also:
Unmarshallable.unmarshal(com.google.gwt.http.client.Response)

getPayload

public java.lang.StringBuilder 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<java.lang.StringBuilder>
Returns:
the object deserialized from response
See Also:
Unmarshallable.getPayload()


Copyright © 2012 eXo Platform SAS. All Rights Reserved.