jakarta-slide-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r...@apache.org
Subject cvs commit: jakarta-slide/src/webdav/client/src/org/apache/webdav/lib ConnectionInterceptor.java WebdavClient.java
Date Wed, 18 Apr 2001 21:42:21 GMT
remm        01/04/18 14:42:21

  Modified:    src/webdav/client/src/org/apache/webdav/lib
                        ConnectionInterceptor.java WebdavClient.java
  Log:
  - Add new info hook which will be called when a 1xx status code is recieved.
  
  Revision  Changes    Path
  1.4       +11 -3     jakarta-slide/src/webdav/client/src/org/apache/webdav/lib/ConnectionInterceptor.java
  
  Index: ConnectionInterceptor.java
  ===================================================================
  RCS file: /home/cvs/jakarta-slide/src/webdav/client/src/org/apache/webdav/lib/ConnectionInterceptor.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- ConnectionInterceptor.java	2001/04/18 21:35:53	1.3
  +++ ConnectionInterceptor.java	2001/04/18 21:42:20	1.4
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-slide/src/webdav/client/src/org/apache/webdav/lib/ConnectionInterceptor.java,v
1.3 2001/04/18 21:35:53 remm Exp $
  - * $Revision: 1.3 $
  - * $Date: 2001/04/18 21:35:53 $
  + * $Header: /home/cvs/jakarta-slide/src/webdav/client/src/org/apache/webdav/lib/ConnectionInterceptor.java,v
1.4 2001/04/18 21:42:20 remm Exp $
  + * $Revision: 1.4 $
  + * $Date: 2001/04/18 21:42:20 $
    *
    * ====================================================================
    *
  @@ -96,6 +96,14 @@
        * @return boolean true if a retry should be attempted
        */
       public boolean retry(int status);
  +
  +
  +    /**
  +     * Recieved an informational status code.
  +     * 
  +     * @return boolean true if a retry should be attempted
  +     */
  +    public boolean info(int status, Hashtable headers);
   
   
       /**
  
  
  
  1.40      +8 -3      jakarta-slide/src/webdav/client/src/org/apache/webdav/lib/WebdavClient.java
  
  Index: WebdavClient.java
  ===================================================================
  RCS file: /home/cvs/jakarta-slide/src/webdav/client/src/org/apache/webdav/lib/WebdavClient.java,v
  retrieving revision 1.39
  retrieving revision 1.40
  diff -u -r1.39 -r1.40
  --- WebdavClient.java	2001/04/18 21:35:53	1.39
  +++ WebdavClient.java	2001/04/18 21:42:20	1.40
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-slide/src/webdav/client/src/org/apache/webdav/lib/WebdavClient.java,v
1.39 2001/04/18 21:35:53 remm Exp $
  - * $Revision: 1.39 $
  - * $Date: 2001/04/18 21:35:53 $
  + * $Header: /home/cvs/jakarta-slide/src/webdav/client/src/org/apache/webdav/lib/WebdavClient.java,v
1.40 2001/04/18 21:42:20 remm Exp $
  + * $Revision: 1.40 $
  + * $Date: 2001/04/18 21:42:20 $
    *
    * ====================================================================
    *
  @@ -366,6 +366,11 @@
                   responseHeaders = parseHeaders(input);
   
                   while (method.getStatusCode() < 200) {
  +                    
  +                    if (connectionInterceptor != null) {
  +                        connectionInterceptor.info
  +                            (method.getStatusCode(), responseHeaders);
  +                    }
                       
                       if (method.getStatusCode() == WebdavStatus.SC_CONTINUE) {
                           if (!sentRequestBody) {
  
  
  

Mime
View raw message