commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject cvs commit: jakarta-commons/httpclient/src/java/org/apache/commons/httpclient HttpClient.java
Date Sun, 21 Jul 2002 05:20:13 GMT
dion        2002/07/20 22:20:13

  Modified:    httpclient/src/java/org/apache/commons/httpclient
                        HttpClient.java
  Log:
  Style violations
  
  Revision  Changes    Path
  1.51      +23 -22    jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/HttpClient.java
  
  Index: HttpClient.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/HttpClient.java,v
  retrieving revision 1.50
  retrieving revision 1.51
  diff -u -r1.50 -r1.51
  --- HttpClient.java	21 Jul 2002 05:13:36 -0000	1.50
  +++ HttpClient.java	21 Jul 2002 05:20:13 -0000	1.51
  @@ -87,7 +87,7 @@
       // -------------------------------------------------------------- Constants
   
       /** <tt>org.apache.commons.httpclient.HttpClient</tt> log. */
  -    static private final Log log = LogFactory.getLog(HttpClient.class.getName());
  +    private static final Log log = LogFactory.getLog(HttpClient.class);
   
       // ----------------------------------------------------------- Constructors
   
  @@ -145,7 +145,7 @@
        * @see #endSession()
        */
       public void startSession(String host, int port) {
  -        startSession(host,port,false);
  +        startSession(host, port, false);
       }
   
       /**
  @@ -160,10 +160,10 @@
        */
       public void startSession(String host, int port, boolean https) {
           if (log.isDebugEnabled()) {
  -            log.debug("HttpClient.startSession(String,int,boolean): Host:" +
  -                      host + " Port:" + port + " HTTPS:" + https);
  +            log.debug("HttpClient.startSession(String,int,boolean): Host:"
  +                + host + " Port:" + port + " HTTPS:" + https);
           }
  -        connection = new HttpConnection(host,port,https);
  +        connection = new HttpConnection(host, port, https);
       }
   
       /**
  @@ -177,7 +177,7 @@
        * @see #endSession()
        */
       public void startSession(String host, int port, Credentials creds) {
  -        startSession(host,port,creds,false);
  +        startSession(host, port, creds, false);
       }
   
   
  @@ -195,13 +195,13 @@
       public void startSession(String host, int port, Credentials creds,
                                boolean https) {
           if (log.isDebugEnabled()) {
  -        	log.debug(
  +            log.debug(
                   "HttpClient.startSession(String,int,Credentials,boolean): Host:"
  -               	+ host + " Port:" + port + " Credentials:" + creds + 
  -                " HTTPS:" + https);
  +                + host + " Port:" + port + " Credentials:" + creds
  +                + " HTTPS:" + https);
           }
  -        getState().setCredentials(null,creds);
  -        connection = new HttpConnection(host,port,https);
  +        getState().setCredentials(null, creds);
  +        connection = new HttpConnection(host, port, https);
       }
   
       /**
  @@ -221,10 +221,10 @@
       public void startSession(URL url) {
         if ("https".equalsIgnoreCase(url.getProtocol())) {
           startSession(url.getHost(), url.getPort() == -1 ? 443
  -                     : url.getPort(),true);
  +                     : url.getPort(), true);
         } else if ("http".equalsIgnoreCase(url.getProtocol())) {
           startSession(url.getHost(), url.getPort() == -1 ? 80
  -                     : url.getPort(),false);
  +                     : url.getPort(), false);
         } else {
             throw new IllegalArgumentException("Protocol " + url.getProtocol()
                                                + " not supported in URL " + url);
  @@ -247,7 +247,7 @@
        *
        */
       public void startSession(URL url, Credentials creds) {
  -        getState().setCredentials(null,creds);
  +        getState().setCredentials(null, creds);
           startSession(url);
       }
   
  @@ -265,7 +265,7 @@
        */
       public void startSession(String host, int port,
                                String proxyhost, int proxyport) {
  -        startSession(host,port,proxyhost,proxyport,false);
  +        startSession(host, port, proxyhost, proxyport, false);
       }
   
   
  @@ -285,7 +285,8 @@
       public void startSession(String host, int port,
                                String proxyhost, int proxyport,
                                boolean secure) {
  -        connection = new HttpConnection(proxyhost,proxyport,host,port,secure);
  +        connection = new HttpConnection(proxyhost, proxyport, host, port, 
  +            secure);
       }
   
       /**
  @@ -309,12 +310,12 @@
           if (null == connection) {
               throw new IllegalStateException(
                   "The startSession method must be called before executeMethod");
  -		}
  +        }
   
           if (!connection.isOpen()) {
               connection.open();
           }
  -        return method.execute(getState(),connection);
  +        return method.execute(getState(), connection);
       }
   
       /**
  
  
  

--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message