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 HttpMultiClient.java
Date Sat, 20 Jul 2002 13:12:29 GMT
dion        2002/07/20 06:12:29

  Modified:    httpclient/src/java/org/apache/commons/httpclient
                        HttpMultiClient.java
  Log:
  Style violations
  
  Revision  Changes    Path
  1.6       +18 -18    jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/HttpMultiClient.java
  
  Index: HttpMultiClient.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/HttpMultiClient.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- HttpMultiClient.java	5 Jul 2002 07:13:46 -0000	1.5
  +++ HttpMultiClient.java	20 Jul 2002 13:12:29 -0000	1.6
  @@ -64,7 +64,9 @@
   
   import java.io.IOException;
   
  -import org.apache.commons.httpclient.log.*;
  +import org.apache.commons.httpclient.log.Log;
  +import org.apache.commons.httpclient.log.LogSource;
  +
   
   /**
    *
  @@ -77,11 +79,11 @@
    * @see HttpClient
    *
    */
  -public class HttpMultiClient
  -{
  +public class HttpMultiClient {
       // -------------------------------------------------------- Class Variables
   
  -    static private final Log log = LogSource.getInstance("org.apache.commons.httpclient.HttpMultiClient");
  +    private static final Log log = LogSource.getInstance(
  +        "org.apache.commons.httpclient.HttpMultiClient");
   
       // ----------------------------------------------------- Instance Variables
       private HttpSharedState state = null;
  @@ -98,16 +100,14 @@
        * HttpMultiClient objects will have strictMode enabled by default.
        *
        */
  -    public HttpMultiClient()
  -    {
  +    public HttpMultiClient() {
       }
       
       /**
        * Constructor that uses proxy host and port. Strict mode is enabled by 
        * default.
        */
  -    public HttpMultiClient(String proxyHost, int proxyPort)
  -    {
  +    public HttpMultiClient(String proxyHost, int proxyPort) {
           this();
           mgr.setProxyHost(proxyHost);
           mgr.setProxyPort(proxyPort);
  @@ -296,7 +296,7 @@
           {
               status = method.execute(getState(), connection);
           }
  -        catch (java.io.IOException ex)
  +        catch (IOException ex)
           {
               throw ex;
           }
  @@ -310,14 +310,14 @@
           }
   
           if (status == 301 || status == 302 || 
  -            status == 303 || status == 307)
  -        {
  +            status == 303 || status == 307) {
               Header header = method.getResponseHeader("Location");
               String url = header.getValue();
  -            if (url == null)
  -            {
  -                log.error("HttpMultiClient.executeMethod:  Received redirect without Location
header.");
  -                throw new HttpException("Received redirect without Location header.");
  +            if (url == null) {
  +                log.error("HttpMultiClient.executeMethod:  Received redirect "
  +                    + "without Location header.");
  +                throw new HttpException("Received redirect without Location "
  +                    + "header.");
               }
   
               method.recycle();
  
  
  

--
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