commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From oglu...@apache.org
Subject cvs commit: jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/methods PostMethod.java
Date Fri, 11 Oct 2002 13:21:07 GMT
oglueck     2002/10/11 06:21:07

  Modified:    httpclient/src/java/org/apache/commons/httpclient/methods
                        PostMethod.java
  Log:
  made members protected to allow easier subclassing (bug #10898)
  added JavaDoc
  
  Revision  Changes    Path
  1.18      +19 -16    jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/methods/PostMethod.java
  
  Index: PostMethod.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/methods/PostMethod.java,v
  retrieving revision 1.17
  retrieving revision 1.18
  diff -u -r1.17 -r1.18
  --- PostMethod.java	1 Sep 2002 01:27:37 -0000	1.17
  +++ PostMethod.java	11 Oct 2002 13:21:07 -0000	1.18
  @@ -137,25 +137,25 @@
       static final Header CONTENT_TYPE = new Header("Content-Type", 
           "application/x-www-form-urlencoded");
   
  -    /** DOCUMENT ME! */
  -    private ByteArrayOutputStream buffer = null;
  +    /** The buffered request body. */
  +    protected ByteArrayOutputStream buffer = null;
   
  -    /** DOCUMENT ME! */
  -    private InputStream requestBody = null;
  +    /** The unbuffered request body. */
  +    protected InputStream requestBody = null;
   
  -    /** DOCUMENT ME! */
  -    private Vector parameters = new Vector();
  +    /** The buffered request body consisting of <code>NameValuePair</code>s
*/
  +    protected Vector parameters = new Vector();
   
  -    /** DOCUMENT ME! */
  -    private int repeatCount = 0;
  +    /** Counts how often the request was sent to the server. */
  +    protected int repeatCount = 0;
   
  -    /** DOCUMENT ME! */
  -    private int requestContentLength = CONTENT_LENGTH_AUTO;
  +    /** The content length of the <code>requestBody</code> or one of
  +     *  <code>CONTENT_LENGTH_AUTO</code> and <code>CONTENT_LENGTH_CHUNKED</code>.
  +     */
  +    protected int requestContentLength = CONTENT_LENGTH_AUTO;
   
       //~ Constructors иииииииииииииииииииииииииииииииииииииииииииииииииииииииииии
   
  -    // ----------------------------------------------------------- Constructors
  -
       /**
        * No-arg constructor.
        * 
  @@ -205,6 +205,8 @@
           setFollowRedirects(false);
       }
   
  +    // ----------------------------------------------------------- Constructors
  +
       //~ Methods ииииииииииииииииииииииииииииииииииииииииииииииииииииииииииииииии
   
       /**
  @@ -430,7 +432,8 @@
        *        content will not be buffered internally and the Content-Length
        *        header of the request will be used. In this case the user is
        *        responsible to supply the correct content length.
  -     * @throws RuntimeException DOCUMENT ME!
  +     * @throws RuntimeException if chunked transfer encoding is requested for
  +     *         a HTTP 1.0 request
        * 
        * @since 2.0
        */
  
  
  

--
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