Code example for BasicHeader

0
      } else { 
        this.postData = null;
      } 
      return this;
    } 
 
    @Override 
    public Request setUrl(String url) throws IllegalArgumentException {
      try { 
        this.uri = new URI(url);
      } catch (URISyntaxException e) {
        throw new IllegalArgumentException(e);
      } 
      return this;
    } 
 
    @Override 
    public String getUrl() {
      return uri == null ? null : uri.toString();
    }