code: public void setTraces(Trace... traces) {
          if (this.httpClient instanceof DefaultHttpClient) {
              ((DefaultHttpClient)this.httpClient).setTraces(traces);
          }
          else
              throw new UnsupportedOperationException("Invalid operation for class " + this.httpClient.getClass());
      }
docs: set what request/response fields to log in trace-logging