super(); this.headergroup = new HeaderGroup(); this.params = params;
this(null);
this.headergroup.addHeader(header);
if (name == null) { throw new IllegalArgumentException("Header name may not be null"); } this.headergroup.addHeader(new BasicHeader(name, value));
return this.headergroup.containsHeader(name);
return this.headergroup.getAllHeaders();
return this.headergroup.getFirstHeader(name);
return this.headergroup.getHeaders(name);
return this.headergroup.getLastHeader(name);
if (this.params == null) { this.params = new BasicHttpParams(); } return this.params;
return this.headergroup.iterator();
return this.headergroup.iterator(name);
this.headergroup.removeHeader(header);
if (name == null) { return; } for (Iterator i = this.headergroup.iterator(); i.hasNext(); ) { Header header = (Header) i.next(); if (name.equalsIgnoreCase(header.getName())) { i.remove(); } }
this.headergroup.updateHeader(header);
if (name == null) { throw new IllegalArgumentException("Header name may not be null"); } this.headergroup.updateHeader(new BasicHeader(name, value));
this.headergroup.setHeaders(headers);
if (params == null) { throw new IllegalArgumentException("HTTP parameters may not be null"); } this.params = params;