org.codegist.crest.handler
Interface ResponseHandler

All Known Implementing Classes:
DefaultResponseHandler

public interface ResponseHandler

Response handler is invoked for each request's as long as the interface doesn't specifically requested for the raw response (Reader or InputStream method return types.)

Response handler role is to check for thridparties specific error formatted content in the response, and returns the expected return type for method calls.

NB: if the response code if different from HTTP 200, this handler won't be called, error handler will be directly invoked

If implementor declares a constructor with a Map argument, it will be called with the user custom properties.

Author:
Laurent Gilles (laurent.gilles@codegist.org)
See Also:
InterfaceContext.getProperties()

Method Summary
 Object handle(ResponseContext responseContext)
           
 

Method Detail

handle

Object handle(ResponseContext responseContext)
              throws CRestException
Throws:
CRestException


Copyright © 2011. All Rights Reserved.