Code example for HttpUriRequest

Methods: getURI

0
 
    @Override 
    public synchronized HttpResponse doRequest(final HttpUriRequest request) {
 
        // Log the outgoing request 
        Log.d(CLASS_NAME, "--> RequestUrl: " + request.getURI());
 
        try { 
            return httpClient.execute(request);
 
        } catch (SocketTimeoutException e) {
            Log.e(CLASS_NAME, "Timeout!");
        } catch (IOException se) {
            Log.e(CLASS_NAME, "Could not connect to server!");
        } catch (Exception e) {
            Log.e(CLASS_NAME, "Exception: " + e.getMessage());
        } 
        return null; 
    } 
 
    @Override