Save This Page
Home » commons-httpclient-3.1-src » org.apache.commons » httpclient » [javadoc | source]
org.apache.commons.httpclient
public class: Header [javadoc | source]
java.lang.Object
   org.apache.commons.httpclient.NameValuePair
      org.apache.commons.httpclient.Header

All Implemented Interfaces:
    Serializable

An HTTP header.

Constructor:
 public Header() 
 public Header(String name,
    String value) 
    Constructor with name and value
    Parameters:
    name - the header name
    value - the header value
 public Header(String name,
    String value,
    boolean isAutogenerated) 
    Constructor with name and value
    Parameters:
    name - the header name
    value - the header value
    isAutogenerated - true if the header is autogenerated, false otherwise.
    since: 3.0 -
Method from org.apache.commons.httpclient.Header Summary:
getElements,   getValues,   isAutogenerated,   toExternalForm,   toString
Methods from org.apache.commons.httpclient.NameValuePair:
equals,   getName,   getValue,   hashCode,   setName,   setValue,   toString
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.commons.httpclient.Header Detail:
 public HeaderElement[] getElements() 
 public HeaderElement[] getValues() throws HttpException 
Deprecated! Use - #getElements

 public boolean isAutogenerated() 
    Returns the value of the auto-generated header flag.
 public String toExternalForm() 
    Returns a String representation of the header.
 public String toString() 
    Returns a String representation of the header.