You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by mb...@apache.org on 2004/05/13 04:26:09 UTC

cvs commit: jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/methods PostMethod.java EntityEnclosingMethod.java StringRequestEntity.java RequestEntity.java InputStreamRequestEntity.java ByteArrayRequestEntity.java

mbecke      2004/05/12 19:26:09

  Modified:    httpclient/src/java/org/apache/commons/httpclient/methods
                        PostMethod.java EntityEnclosingMethod.java
                        StringRequestEntity.java RequestEntity.java
                        InputStreamRequestEntity.java
                        ByteArrayRequestEntity.java
  Log:
  Added @since 3.0 tags.
  
  Revision  Changes    Path
  1.56      +9 -6      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.55
  retrieving revision 1.56
  diff -u -r1.55 -r1.56
  --- PostMethod.java	12 May 2004 03:07:03 -0000	1.55
  +++ PostMethod.java	13 May 2004 02:26:08 -0000	1.56
  @@ -153,8 +153,11 @@
           super.clearRequestBody();
       }
   
  -    /* (non-Javadoc)
  -     * @see org.apache.commons.httpclient.methods.EntityEnclosingMethod#generateRequestEntity()
  +    /**
  +     * Generates a request entity from the post parameters, if present.  Calls
  +     * {@link EntityEnclosingMethod#generateRequestBody()} if parameters have not been set.
  +     * 
  +     * @since 3.0
        */
       protected RequestEntity generateRequestEntity() {
           if (!this.params.isEmpty()) {
  
  
  
  1.36      +15 -6     jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/methods/EntityEnclosingMethod.java
  
  Index: EntityEnclosingMethod.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/methods/EntityEnclosingMethod.java,v
  retrieving revision 1.35
  retrieving revision 1.36
  diff -u -r1.35 -r1.36
  --- EntityEnclosingMethod.java	12 May 2004 20:43:53 -0000	1.35
  +++ EntityEnclosingMethod.java	13 May 2004 02:26:08 -0000	1.36
  @@ -238,8 +238,13 @@
           this.requestContentLength = length;
       }
   
  -    /* (non-Javadoc)
  -     * @see org.apache.commons.httpclient.HttpMethodBase#getRequestCharSet()
  +    /**
  +     * Returns the request's charset.  The charset is parsed from the request entity's 
  +     * content type, unless the content type header has been set manually. 
  +     * 
  +     * @see RequestEntity#getContentType()
  +     * 
  +     * @since 3.0
        */
       public String getRequestCharSet() {
           if (getRequestHeader("Content-Type") == null) {
  @@ -506,6 +511,8 @@
   
       /**
        * @return Returns the requestEntity.
  +     * 
  +     * @since 3.0
        */
       public RequestEntity getRequestEntity() {
           return generateRequestEntity();
  @@ -513,6 +520,8 @@
   
       /**
        * @param requestEntity The requestEntity to set.
  +     * 
  +     * @since 3.0
        */
       public void setRequestEntity(RequestEntity requestEntity) {
           clearRequestBody();
  
  
  
  1.2       +5 -3      jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/methods/StringRequestEntity.java
  
  Index: StringRequestEntity.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/methods/StringRequestEntity.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- StringRequestEntity.java	12 May 2004 03:07:03 -0000	1.1
  +++ StringRequestEntity.java	13 May 2004 02:26:08 -0000	1.2
  @@ -40,6 +40,8 @@
   
   /**
    * A RequestEntity that contains a String.
  + * 
  + * @since 3.0
    */
   public class StringRequestEntity implements RequestEntity {
   
  
  
  
  1.3       +4 -3      jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/methods/RequestEntity.java
  
  Index: RequestEntity.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/methods/RequestEntity.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- RequestEntity.java	12 May 2004 03:07:03 -0000	1.2
  +++ RequestEntity.java	13 May 2004 02:26:08 -0000	1.3
  @@ -33,6 +33,7 @@
   import java.io.OutputStream;
   
   /**
  + * @since 3.0
    */
   public interface RequestEntity {
   
  
  
  
  1.3       +5 -3      jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/methods/InputStreamRequestEntity.java
  
  Index: InputStreamRequestEntity.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/methods/InputStreamRequestEntity.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- InputStreamRequestEntity.java	12 May 2004 03:07:03 -0000	1.2
  +++ InputStreamRequestEntity.java	13 May 2004 02:26:08 -0000	1.3
  @@ -40,6 +40,8 @@
   
   /**
    * A RequestEntity that contains an InputStream.
  + * 
  + * @since 3.0
    */
   public class InputStreamRequestEntity implements RequestEntity {
   
  
  
  
  1.3       +5 -3      jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/methods/ByteArrayRequestEntity.java
  
  Index: ByteArrayRequestEntity.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/methods/ByteArrayRequestEntity.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- ByteArrayRequestEntity.java	12 May 2004 03:07:03 -0000	1.2
  +++ ByteArrayRequestEntity.java	13 May 2004 02:26:08 -0000	1.3
  @@ -35,6 +35,8 @@
   
   /**
    * A RequestEntity that contains an array of bytes.
  + * 
  + * @since 3.0
    */
   public class ByteArrayRequestEntity implements RequestEntity {
   
  
  
  

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