org.codegist.crest.handler
Interface ResponseHandler

All Known Implementing Classes:
DefaultResponseHandler

@CRestComponent
public interface ResponseHandler

ResponseHandlers are responsible for handling the server response and returning the deserialized response back to the caller.

ResponseHandlers are CRest Components.

Author:
laurent.gilles@codegist.org
See Also:
CRestComponent

Method Summary
 Object handle(Response response)
          Server response to handle
 

Method Detail

handle

Object handle(Response response)
              throws Exception
Server response to handle

Parameters:
response - response to handle
Returns:
deserialized response, must be compatible with the method return type
Throws:
Exception - Any exception thrown during the response handling


Copyright © 2011. All Rights Reserved.