You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-dev@jakarta.apache.org by re...@apache.org on 2001/04/18 20:07:34 UTC

cvs commit: jakarta-slide/src/webdav/client/src/org/apache/webdav/lib ConnectionInterceptor.java

remm        01/04/18 11:07:33

  Modified:    src/webdav/client/src/org/apache/webdav/lib
                        ConnectionInterceptor.java
  Log:
  - Add additional hooks for the connection status.
  
  Revision  Changes    Path
  1.2       +36 -2     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.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- ConnectionInterceptor.java	2001/04/13 01:33:28	1.1
  +++ ConnectionInterceptor.java	2001/04/18 18:07:31	1.2
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-slide/src/webdav/client/src/org/apache/webdav/lib/ConnectionInterceptor.java,v 1.1 2001/04/13 01:33:28 remm Exp $
  - * $Revision: 1.1 $
  - * $Date: 2001/04/13 01:33:28 $
  + * $Header: /home/cvs/jakarta-slide/src/webdav/client/src/org/apache/webdav/lib/ConnectionInterceptor.java,v 1.2 2001/04/18 18:07:31 remm Exp $
  + * $Revision: 1.2 $
  + * $Date: 2001/04/18 18:07:31 $
    *
    * ====================================================================
    *
  @@ -63,6 +63,8 @@
   
   package org.apache.webdav.lib;
   
  +import java.util.Hashtable;
  +
   /**
    * The connection interceptor.
    * 
  @@ -105,6 +107,38 @@
        * @return boolean true if processing of the request should be stopped
        */
       public boolean error(int status, Exception e);
  +
  +
  +    /**
  +     * Sent request.
  +     * 
  +     * @param requestLine Request line sent
  +     * @param headers Headers sent
  +     */
  +    public void sentRequest(String method, String uri, String protocol,
  +                            Hashtable headers);
  +
  +
  +    /**
  +     * Recieved response.
  +     * 
  +     * @param responseLine Response line recieved
  +     * @param headers Headers recieved
  +     */
  +    public void recievedResponse(String protocol, int status, 
  +                                 String statusText, Hashtable headers);
  +
  +
  +    /**
  +     * Recieved expectation.
  +     */
  +    public void recievedExpectation();
  +
  +
  +    /**
  +     * Authenticate.
  +     */
  +    public void authenticate(String scheme);
   
   
   }