olegk       2004/09/30 11:15:22

  Modified:    httpclient/src/java/org/apache/commons/httpclient
                        HttpMethodBase.java
                        MultiThreadedHttpConnectionManager.java
               httpclient/src/test/org/apache/commons/httpclient
                        SimpleHttpConnection.java
  Log:
  Removed references to the deprecated RecoverableHttpException class
  
  Contributed by Oleg Kalnichevski
  
  Revision  Changes    Path
  1.216     +6 -9      
jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/HttpMethodBase.java
  
  Index: HttpMethodBase.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/HttpMethodBase.java,v
  retrieving revision 1.215
  retrieving revision 1.216
  diff -u -r1.215 -r1.216
  --- HttpMethodBase.java       17 Sep 2004 08:00:51 -0000      1.215
  +++ HttpMethodBase.java       30 Sep 2004 18:15:22 -0000      1.216
  @@ -981,12 +981,9 @@
        *
        * @throws IOException if an I/O (transport) error occurs
        * @throws HttpException  if a protocol exception occurs.
  -     * @throws HttpRecoverableException if a recoverable transport error occurs. 
  -     *                    Usually this kind of exceptions can be recovered from by
  -     *                    retrying the HTTP method 
        */
       public int execute(HttpState state, HttpConnection conn)
  -        throws HttpException, HttpRecoverableException, IOException {
  +        throws HttpException, IOException {
                   
           LOG.trace("enter HttpMethodBase.execute(HttpState, HttpConnection)");
   
  @@ -1823,7 +1820,7 @@
        * @see StatusLine
        */
       protected void readStatusLine(HttpState state, HttpConnection conn)
  -    throws IOException, HttpRecoverableException, HttpException {
  +    throws IOException, HttpException {
           LOG.trace("enter HttpMethodBase.readStatusLine(HttpState, HttpConnection)");
   
           final int maxGarbageLines = getParams().
  
  
  
  1.44      +10 -10    
jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/MultiThreadedHttpConnectionManager.java
  
  Index: MultiThreadedHttpConnectionManager.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/MultiThreadedHttpConnectionManager.java,v
  retrieving revision 1.43
  retrieving revision 1.44
  diff -u -r1.43 -r1.44
  --- MultiThreadedHttpConnectionManager.java   13 Sep 2004 16:25:19 -0000      1.43
  +++ MultiThreadedHttpConnectionManager.java   30 Sep 2004 18:15:22 -0000      1.44
  @@ -1335,7 +1335,7 @@
            * @deprecated
            */
           public void print(String data)
  -            throws IOException, IllegalStateException, HttpRecoverableException {
  +            throws IOException, IllegalStateException {
               if (hasConnection()) {
                   wrappedConnection.print(data);
               } else {
  @@ -1344,7 +1344,7 @@
           }
   
           public void printLine()
  -            throws IOException, IllegalStateException, HttpRecoverableException {
  +            throws IOException, IllegalStateException {
               if (hasConnection()) {
                   wrappedConnection.printLine();
               } else {
  @@ -1356,7 +1356,7 @@
            * @deprecated
            */
           public void printLine(String data)
  -            throws IOException, IllegalStateException, HttpRecoverableException {
  +            throws IOException, IllegalStateException {
               if (hasConnection()) {
                   wrappedConnection.printLine(data);
               } else {
  @@ -1492,7 +1492,7 @@
           }
   
           public void write(byte[] data, int offset, int length)
  -            throws IOException, IllegalStateException, HttpRecoverableException {
  +            throws IOException, IllegalStateException {
               if (hasConnection()) {
                   wrappedConnection.write(data, offset, length);
               } else {
  @@ -1501,7 +1501,7 @@
           }
   
           public void write(byte[] data)
  -            throws IOException, IllegalStateException, HttpRecoverableException {
  +            throws IOException, IllegalStateException {
               if (hasConnection()) {
                   wrappedConnection.write(data);
               } else {
  @@ -1510,7 +1510,7 @@
           }
   
           public void writeLine()
  -            throws IOException, IllegalStateException, HttpRecoverableException {
  +            throws IOException, IllegalStateException {
               if (hasConnection()) {
                   wrappedConnection.writeLine();
               } else {
  @@ -1519,7 +1519,7 @@
           }
   
           public void writeLine(byte[] data)
  -            throws IOException, IllegalStateException, HttpRecoverableException {
  +            throws IOException, IllegalStateException {
               if (hasConnection()) {
                   wrappedConnection.writeLine(data);
               } else {
  
  
  
  1.20      +5 -5      
jakarta-commons/httpclient/src/test/org/apache/commons/httpclient/SimpleHttpConnection.java
  
  Index: SimpleHttpConnection.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-commons/httpclient/src/test/org/apache/commons/httpclient/SimpleHttpConnection.java,v
  retrieving revision 1.19
  retrieving revision 1.20
  diff -u -r1.19 -r1.20
  --- SimpleHttpConnection.java 28 Sep 2004 21:08:48 -0000      1.19
  +++ SimpleHttpConnection.java 30 Sep 2004 18:15:22 -0000      1.20
  @@ -171,11 +171,11 @@
       }
   
       public void write(byte[] data)
  -    throws IOException, IllegalStateException, HttpRecoverableException {
  +    throws IOException, IllegalStateException {
       }
   
       public void writeLine()
  -    throws IOException, IllegalStateException, HttpRecoverableException {
  +    throws IOException, IllegalStateException {
       }
   
       public String readLine(String charset)
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to