sdk/java/src/main/java/com/example/www/controllers/BlacklistIPAddressesController.java
/**
     * Processes the response for getDetails
     * @return An object of type void
     */
Processes the response for getDetails
@return An object of type void
Processes the response for getDetails @return An object of type void
private GetDetailsResponse _handleGetDetailsResponse(HttpContext _context)
            throws APIException, IOException {
        HttpResponse _response = _context.getResponse();
        if (getHttpCallBack() != null) {
            getHttpCallBack().OnAfterResponse(_context);
        }
        int _responseCode = _response.getStatusCode();
        if (_responseCode == 400) {
            throw new ReturnException("Unexpected error in API call. See HTTP response body for details.", _context);
        }
        validateResponse(_response, _context);
        String _responseBody = ((HttpStringResponse)_response).getBody();
        GetDetailsResponse _result = APIHelper.deserialize(_responseBody,
                                                        new TypeReference<GetDetailsResponse>(){});
        return _result;
    }
private GetDetailsResponse _handleGetDetailsResponse ( HttpContext _context ) throws APIException , IOException { HttpResponse _response = _context . getResponse ( ) ; if ( getHttpCallBack ( ) != null ) { getHttpCallBack ( ) . OnAfterResponse ( _context ) ; } int _responseCode = _response . getStatusCode ( ) ; if ( _responseCode == 400 ) { throw new ReturnException ( "Unexpected error in API call. See HTTP response body for details." , _context ) ; } validateResponse ( _response , _context ) ; String _responseBody = ( ( HttpStringResponse ) _response ) . getBody ( ) ; GetDetailsResponse _result = APIHelper . deserialize ( _responseBody , new TypeReference < GetDetailsResponse > ( ) { } ) ; return _result ; }
Processes the response for getDetails
 @return An object of type void
Processes the response for getDetails @return An object of type void
//invoke the callback after response if its not null //Error handling using HTTP status codes //handle errors defined at the API level //extract result from the http response