Errai 3.0.1-SNAPSHOT

org.jboss.errai.enterprise.client.jaxrs
Interface ResponseDemarshallingCallback<T>

Type Parameters:
T - The type the response is demarshalled to.

public interface ResponseDemarshallingCallback<T>

A callback used by the generated JAX-RS proxies to demarshall the response of an HTTP request. The reason proxies carry out marshalling and demarshalling directly is that the type and content-type information can be inferred statically (at compile time). There is no need to defer the discussion on how to demarshall a response to run time.

Author:
Christian Sadilek

Method Summary
 T demarshallResponse(String response)
          Demarshalls the provided response into an object of type .
 

Method Detail

demarshallResponse

T demarshallResponse(String response)
Demarshalls the provided response into an object of type .

Parameters:
String - representation of the response, must not be null.
Returns:
the demarshalled object.

Errai 3.0.1-SNAPSHOT

Copyright © 2013-2014 JBoss, a division of Red Hat. All Rights Reserved.