commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject cvs commit: jakarta-commons/httpclient/src/java/org/apache/commons/httpclient Header.java
Date Sun, 14 Jul 2002 02:31:40 GMT
dion        2002/07/13 19:31:40

  Modified:    httpclient/src/java/org/apache/commons/httpclient
                        Header.java
  Log:
  Fix imports and javadoc
  
  Revision  Changes    Path
  1.7       +14 -14    jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/Header.java
  
  Index: Header.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/Header.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- Header.java	5 Jan 2002 11:15:59 -0000	1.6
  +++ Header.java	14 Jul 2002 02:31:39 -0000	1.7
  @@ -62,14 +62,6 @@
   
   package org.apache.commons.httpclient;
   
  -import java.io.IOException;
  -import java.util.*;
  -import java.security.Principal;
  -import java.text.DateFormat;
  -import java.text.SimpleDateFormat;
  -import java.net.Socket;
  -import java.net.UnknownHostException;
  -
   /**
    * <p>An HTTP header.</p>
    *
  @@ -88,9 +80,10 @@
       }
   
       /**
  -     * Constructor.
  +     * Constructor with name and value
  +     *
        * @param name the header name
  -     * @param name the header value
  +     * @param value the header value
        */
       public Header(String name, String value) {
           super(name, value);
  @@ -101,6 +94,8 @@
       /**
        * Get a {@link String} representation of me, suitable
        * for use in an HTTP head.
  +     *
  +     * @return string value for a HTTP HEAD
        */
       public String toExternalForm() {
           return ((null == getName() ? "" : getName()) +
  @@ -111,7 +106,9 @@
   
       /**
        * Returns a {@link String} representation of me.
  +     *
        * @see #toExternalForm
  +     * @return String representation
        */
       public String toString() {
           return toExternalForm();
  @@ -120,7 +117,10 @@
       /**
        * Returns an array of {@link HeaderElement}s
        * constructed from my value.
  +     *
        * @see HeaderElement#parse
  +     * @throws HttpException When ? occurs
  +     * @return an array of header elements
        */
       public HeaderElement[] getValues() throws HttpException {
           return HeaderElement.parse(getValue());
  
  
  

--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message