protected Map<Object, Closure> buildDefaultResponseHandlers() {
        Map<Object, Closure> map = new StringHashMap<Closure>();
        map.put(Status.SUCCESS,
                new MethodClosure(this, "defaultSuccessHandler"));
        map.put(Status.FAILURE,
                new MethodClosure(this, "defaultFailureHandler"));

        return map;
    }
protected Map<Object, Closure> buildDefaultResponseHandlers() {
        Map<Object, Closure> map = new StringHashMap<Closure>();
        map.put(Status.SUCCESS,
                new MethodClosure(this, "defaultSuccessHandler"));
        map.put(Status.FAILURE,
                new MethodClosure(this, "defaultFailureHandler"));

        return map;
    }
protected Map < Object , Closure > buildDefaultResponseHandlers ( ) { Map < Object , Closure > map = new StringHashMap < Closure > ( ) ; map . put ( Status . SUCCESS , new MethodClosure ( this , "defaultSuccessHandler" ) ) ; map . put ( Status . FAILURE , new MethodClosure ( this , "defaultFailureHandler" ) ) ; return map ; }
Creates default response handlers for {@link Status#SUCCESS success} and
{@link Status#FAILURE failure} status codes.  This is used to populate
the handler map when a new HTTPBuilder instance is created.

@return the default response handler map.
@see #defaultSuccessHandler(HttpResponseDecorator, Object)
@see #defaultFailureHandler(HttpResponseDecorator)
Creates default response handlers for { @link Status#SUCCESS success } and { @link Status#FAILURE failure } status codes . This is used to populate the handler map when a new HTTPBuilder instance is created .