rwaldhoff    01/08/13 17:49:56

  Modified:    httpclient/src/java/org/apache/commons/httpclient Tag:
                        rlwrefactoring HttpConnection.java
  Log:
  more javadoc (missed some)
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.6   +35 -6     
jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/Attic/HttpConnection.java
  
  Index: HttpConnection.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/Attic/HttpConnection.java,v
  retrieving revision 1.1.2.5
  retrieving revision 1.1.2.6
  diff -u -r1.1.2.5 -r1.1.2.6
  --- HttpConnection.java       2001/08/14 00:44:43     1.1.2.5
  +++ HttpConnection.java       2001/08/14 00:49:56     1.1.2.6
  @@ -1,7 +1,7 @@
   /*
  - * $Header: 
/home/cvs/jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/Attic/HttpConnection.java,v
 1.1.2.5 2001/08/14 00:44:43 rwaldhoff Exp $
  - * $Revision: 1.1.2.5 $
  - * $Date: 2001/08/14 00:44:43 $
  + * $Header: 
/home/cvs/jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/Attic/HttpConnection.java,v
 1.1.2.6 2001/08/14 00:49:56 rwaldhoff Exp $
  + * $Revision: 1.1.2.6 $
  + * $Date: 2001/08/14 00:49:56 $
    * ====================================================================
    * Copyright (C) The Apache Software Foundation. All rights reserved.
    *
  @@ -28,7 +28,7 @@
    * pair, together with the relevant attributes.
    *
    * @author Rod Waldhoff
  - * @version $Id: HttpConnection.java,v 1.1.2.5 2001/08/14 00:44:43 rwaldhoff Exp $
  + * @version $Id: HttpConnection.java,v 1.1.2.6 2001/08/14 00:49:56 rwaldhoff Exp $
    */
   public class HttpConnection {
   
  @@ -93,7 +93,7 @@
   
       /**
        * Set my host.
  -     * @param the host I should connect to
  +     * @param host the host I should connect to
        * @throws IllegalStateException if I am already connected
        */
       public void setHost(String host) {
  @@ -111,7 +111,7 @@
   
       /**
        * Set my port.
  -     * @param the port I should connect to
  +     * @param port the port I should connect to
        * @throws IllegalStateException if I am already connected
        */
       public void setPort(int port) {
  @@ -127,6 +127,11 @@
           return _proxyHost;
       }
   
  +    /**
  +     * Set the host I should proxy through.
  +     * @param host the host I should proxy through.
  +     * @throws IllegalStateException if I am already connected
  +     */
       public void setProxyHost(String host) {
          assertNotOpen();
          _proxyHost = host;
  @@ -140,6 +145,11 @@
           return _proxyPort;
       }
   
  +    /**
  +     * Set the port I should proxy through.
  +     * @param port the host I should proxy through.
  +     * @throws IllegalStateException if I am already connected
  +     */
       public void setProxyPort(int port) {
          assertNotOpen();
          _proxyPort = port;
  @@ -155,6 +165,11 @@
           return _ssl;
       }
   
  +    /**
  +     * Set whether or not I should connect over HTTPS (SSL).
  +     * @param secure whether or not I should connect over HTTPS (SSL).
  +     * @throws IllegalStateException if I am already connected
  +     */
       public void setSecure(boolean secure) {
           assertNotOpen();
           _ssl = secure;
  @@ -484,19 +499,33 @@
   
       // ------------------------------------------------------------- Attributes
   
  +    /** <tt>org.apache.commons.httpclient.HttpConnection</tt> log. */
       static private final Log log = 
LogSource.getInstance("org.apache.commons.httpclient.HttpConnection");
  +    /** <tt>httpclient.wire</tt> log. */
       static private final Log wireLog = LogSource.getInstance("httpclient.wire");
  +    /** My host. */
       protected String _host = null;
  +    /** My port. */
       protected int _port = -1;
  +    /** My proxy host. */
       protected String _proxyHost = null;
  +    /** My proxy port. */
       protected int _proxyPort = -1;
  +    /** My client Socket. */
       protected Socket _socket = null;
  +    /** My InputStream. */
       protected InputStream _input = null;
  +    /** My OutputStream. */
       protected OutputStream _output = null;
  +    /** Whether or not I am connected. */
       protected boolean _open = false;
  +    /** Whether or not I am/should connect via SSL. */
       protected boolean _ssl = false;
  +    /** My ConnectionInterceptor. */
       protected ConnectionInterceptor _connectionInterceptor = null;
  +    /** My StreamInterceptor. */
       protected StreamInterceptor _streamInterceptor = null;
  +    /** <tt>"\r\n"</tt>, as bytes. */
       protected static final byte[] CRLF = "\r\n".getBytes();
   
   }
  
  
  

Reply via email to