Code example for Pair

0
    @Override 
    public Request addHeader(String headerKey, String headerValue) {
      if (headers == null) {
        headers = new ArrayList<Pair<String, String>>();
      } 
      headers.add(new Pair<String, String>(headerKey, headerValue));
      return this;
    } 
 
    @Override 
    public Response execute() {
      if (uri == null) {
        throw new IllegalStateException("Uri must be set.");
      } 
      HttpUriRequest request = (postData == null) ? toHttpGet() : toHttpPost();
      return UrlContentManager.this.execute(request);
    } 
 
    @Override 
    public Request setPostData(String postData) {
      return setPostData(postData, null);