You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by mo...@apache.org on 2002/05/03 18:04:50 UTC

cvs commit: jakarta-commons/latka/src/java/org/apache/commons/latka/http Response.java ResponseImpl.java

morgand     02/05/03 09:04:50

  Modified:    latka/src/java/org/apache/commons/latka/http Response.java
                        ResponseImpl.java
  Log:
  tests for checking the text portion of the status line
  
  Revision  Changes    Path
  1.10      +5 -4      jakarta-commons/latka/src/java/org/apache/commons/latka/http/Response.java
  
  Index: Response.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/latka/src/java/org/apache/commons/latka/http/Response.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- Response.java	11 Apr 2002 14:43:18 -0000	1.9
  +++ Response.java	3 May 2002 16:04:50 -0000	1.10
  @@ -1,8 +1,4 @@
   /*
  - *
  - *
  - *
  - *
    * ====================================================================
    *
    * The Apache Software License, Version 1.1
  @@ -75,6 +71,11 @@
      * @return the integer status code provided by the HTTP server.
      */
     public int getStatusCode();
  +
  +  /**
  +   * Return the status text (or "reason phrase") associated with the response.
  +   */
  +  public String getStatusText();
   
     /**
      * @return the resource, in string form, provided by the HTTP server.
  
  
  
  1.17      +6 -5      jakarta-commons/latka/src/java/org/apache/commons/latka/http/ResponseImpl.java
  
  Index: ResponseImpl.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/latka/src/java/org/apache/commons/latka/http/ResponseImpl.java,v
  retrieving revision 1.16
  retrieving revision 1.17
  diff -u -r1.16 -r1.17
  --- ResponseImpl.java	23 Apr 2002 07:11:07 -0000	1.16
  +++ ResponseImpl.java	3 May 2002 16:04:50 -0000	1.17
  @@ -1,8 +1,4 @@
   /*
  - *
  - *
  - *
  - *
    * ====================================================================
    *
    * The Apache Software License, Version 1.1
  @@ -74,7 +70,7 @@
    * @author <a href="mailto:dsale@us.britannica.com">Doug Sale</a>
    * @author <a href="mailto:mdelagra@us.britannica.com">Morgan Delagrange</a>
    * @author dIon Gillard
  - * @version $Id: ResponseImpl.java,v 1.16 2002/04/23 07:11:07 dion Exp $
  + * @version $Id: ResponseImpl.java,v 1.17 2002/05/03 16:04:50 morgand Exp $
    */
   public class ResponseImpl implements Response {
   
  @@ -110,6 +106,11 @@
       // defined in interface
       public int getStatusCode() {
           return _httpMethod.getStatusCode();
  +    }
  +
  +    // defined in interface
  +    public String getStatusText() {
  +        return _httpMethod.getStatusText();
       }
   
       // defined in interface
  
  
  

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>