sdk/java/src/main/java/com/example/www/controllers/WhitelistController.java
/**
     * This will list the entire contents of the Whitelist including both IP Addresses and Geo Locations.
     * @return    Returns the void response from the API call 
     */
This will list the entire contents of the Whitelist including both IP Addresses and Geo Locations.
@return    Returns the void response from the API call
This will list the entire contents of the Whitelist including both IP Addresses and Geo Locations . @return Returns the void response from the API call
public void allContentsAsync(
                final APICallBack<AllContentsResponse> callBack
    ) {
        Runnable _responseTask = new Runnable() {
            public void run() {
                HttpRequest _request;
                try {
                    _request = _buildAllContentsRequest();
                } catch (Exception e) {
                    callBack.onFailure(null, e);
                    return;
                }
                getClientInstance().executeAsStringAsync(_request, new APICallBack<HttpResponse>() {
                    public void onSuccess(HttpContext _context, HttpResponse _response) {
                        try {
                            AllContentsResponse returnValue = _handleAllContentsResponse(_context);
                            callBack.onSuccess(_context, returnValue);
                        } catch (Exception e) {
                            callBack.onFailure(_context, e);
                        }
                    }
                    public void onFailure(HttpContext _context, Throwable _exception) {
                        callBack.onFailure(_context, _exception);
                    }
                });
            }
        };
        APIHelper.getScheduler().execute(_responseTask);
    }
public void allContentsAsync ( final APICallBack < AllContentsResponse > callBack ) { Runnable _responseTask = new Runnable ( ) { public void run ( ) { HttpRequest _request ; try { _request = _buildAllContentsRequest ( ) ; } catch ( Exception e ) { callBack . onFailure ( null , e ) ; return ; } getClientInstance ( ) . executeAsStringAsync ( _request , new APICallBack < HttpResponse > ( ) { public void onSuccess ( HttpContext _context , HttpResponse _response ) { try { AllContentsResponse returnValue = _handleAllContentsResponse ( _context ) ; callBack . onSuccess ( _context , returnValue ) ; } catch ( Exception e ) { callBack . onFailure ( _context , e ) ; } } public void onFailure ( HttpContext _context , Throwable _exception ) { callBack . onFailure ( _context , _exception ) ; } } ) ; } } ; APIHelper . getScheduler ( ) . execute ( _responseTask ) ; }
This will list the entire contents of the Whitelist including both IP Addresses and Geo Locations.
This will list the entire contents of the Whitelist including both IP Addresses and Geo Locations .
// Invoke request and get response // Let the caller know of the failure // Execute async using thread pool