|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.
InterfaceContext.getProperties()
Method Summary | |
---|---|
Object |
handle(ResponseContext responseContext)
|
Method Detail |
---|
Object handle(ResponseContext responseContext) throws CRestException
CRestException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |