mbecke      2003/02/25 15:33:48

  Modified:    httpclient/src/test-webapp/src/org/apache/commons/httpclient
                        RedirectServlet.java WriteCookieServlet.java
                        MultiMethodServlet.java StatusLineServlet.java
                        RequestBodyServlet.java
               httpclient/src/java/org/apache/commons/httpclient/methods
                        PostMethod.java MultipartPostMethod.java
                        EntityEnclosingMethod.java
               httpclient/src/examples PostXML.java CookieDemoApp.java
                        TrivialApp.java
               httpclient/src/test/org/apache/commons/httpclient
                        TestWebappMultiPostMethod.java
               httpclient/src/java/org/apache/commons/httpclient/methods/multipart
                        Part.java
  Log:
  Removed unused imports.
  
  Revision  Changes    Path
  1.7       +9 -7      
jakarta-commons/httpclient/src/test-webapp/src/org/apache/commons/httpclient/RedirectServlet.java
  
  Index: RedirectServlet.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-commons/httpclient/src/test-webapp/src/org/apache/commons/httpclient/RedirectServlet.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- RedirectServlet.java      1 Feb 2003 20:40:03 -0000       1.6
  +++ RedirectServlet.java      25 Feb 2003 23:33:44 -0000      1.7
  @@ -63,10 +63,12 @@
   
   package org.apache.commons.httpclient;
   
  -import java.io.*;
  -import javax.servlet.*;
  -import javax.servlet.http.*;
  -import java.util.*;
  +import java.io.IOException;
  +
  +import javax.servlet.ServletException;
  +import javax.servlet.http.HttpServletRequest;
  +import javax.servlet.http.HttpServletResponse;
  +import javax.servlet.http.HttpUtils;
   
   public class RedirectServlet extends MultiMethodServlet {
       protected void genericService(HttpServletRequest request, HttpServletResponse 
response) throws IOException, ServletException {
  
  
  
  1.5       +9 -7      
jakarta-commons/httpclient/src/test-webapp/src/org/apache/commons/httpclient/WriteCookieServlet.java
  
  Index: WriteCookieServlet.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-commons/httpclient/src/test-webapp/src/org/apache/commons/httpclient/WriteCookieServlet.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- WriteCookieServlet.java   23 Jan 2003 22:48:49 -0000      1.4
  +++ WriteCookieServlet.java   25 Feb 2003 23:33:44 -0000      1.5
  @@ -62,11 +62,13 @@
   
   package org.apache.commons.httpclient;
   
  -import java.io.*;
  -import javax.servlet.*;
  -import javax.servlet.http.*;
  +import java.io.IOException;
  +import java.io.PrintWriter;
  +
  +import javax.servlet.ServletException;
   import javax.servlet.http.Cookie;
  -import java.util.*;
  +import javax.servlet.http.HttpServletRequest;
  +import javax.servlet.http.HttpServletResponse;
   
   public class WriteCookieServlet extends MultiMethodServlet {
       protected void genericService(HttpServletRequest request, HttpServletResponse 
response) throws IOException, ServletException {
  
  
  
  1.4       +9 -7      
jakarta-commons/httpclient/src/test-webapp/src/org/apache/commons/httpclient/MultiMethodServlet.java
  
  Index: MultiMethodServlet.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-commons/httpclient/src/test-webapp/src/org/apache/commons/httpclient/MultiMethodServlet.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- MultiMethodServlet.java   23 Jan 2003 22:48:49 -0000      1.3
  +++ MultiMethodServlet.java   25 Feb 2003 23:33:44 -0000      1.4
  @@ -62,10 +62,12 @@
   
   package org.apache.commons.httpclient;
   
  -import java.io.*;
  -import javax.servlet.*;
  -import javax.servlet.http.*;
  -import java.util.*;
  +import java.io.IOException;
  +
  +import javax.servlet.ServletException;
  +import javax.servlet.http.HttpServlet;
  +import javax.servlet.http.HttpServletRequest;
  +import javax.servlet.http.HttpServletResponse;
   
   public abstract class MultiMethodServlet extends HttpServlet {
       protected abstract void genericService(HttpServletRequest request, 
HttpServletResponse response) throws IOException, ServletException;
  
  
  
  1.2       +8 -7      
jakarta-commons/httpclient/src/test-webapp/src/org/apache/commons/httpclient/StatusLineServlet.java
  
  Index: StatusLineServlet.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-commons/httpclient/src/test-webapp/src/org/apache/commons/httpclient/StatusLineServlet.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- StatusLineServlet.java    7 Feb 2003 04:50:03 -0000       1.1
  +++ StatusLineServlet.java    25 Feb 2003 23:33:45 -0000      1.2
  @@ -62,10 +62,11 @@
   
   package org.apache.commons.httpclient;
   
  -import java.io.*;
  -import javax.servlet.*;
  -import javax.servlet.http.*;
  -import java.util.*;
  +import java.io.IOException;
  +
  +import javax.servlet.ServletException;
  +import javax.servlet.http.HttpServletRequest;
  +import javax.servlet.http.HttpServletResponse;
   
   public class StatusLineServlet extends MultiMethodServlet {
       protected void genericService(HttpServletRequest request, HttpServletResponse 
response) 
  
  
  
  1.4       +10 -7     
jakarta-commons/httpclient/src/test-webapp/src/org/apache/commons/httpclient/RequestBodyServlet.java
  
  Index: RequestBodyServlet.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-commons/httpclient/src/test-webapp/src/org/apache/commons/httpclient/RequestBodyServlet.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- RequestBodyServlet.java   23 Jan 2003 22:48:49 -0000      1.3
  +++ RequestBodyServlet.java   25 Feb 2003 23:33:45 -0000      1.4
  @@ -62,10 +62,13 @@
   
   package org.apache.commons.httpclient;
   
  -import java.io.*;
  -import javax.servlet.*;
  -import javax.servlet.http.*;
  -import java.util.*;
  +import java.io.IOException;
  +import java.io.PrintWriter;
  +
  +import javax.servlet.ServletException;
  +import javax.servlet.ServletInputStream;
  +import javax.servlet.http.HttpServletRequest;
  +import javax.servlet.http.HttpServletResponse;
   
   public class RequestBodyServlet extends MultiMethodServlet {
       protected void genericService(HttpServletRequest request, HttpServletResponse 
response) throws IOException, ServletException {
  
  
  
  1.39      +6 -7      
jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/methods/PostMethod.java
  
  Index: PostMethod.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/methods/PostMethod.java,v
  retrieving revision 1.38
  retrieving revision 1.39
  diff -u -r1.38 -r1.39
  --- PostMethod.java   3 Feb 2003 21:21:19 -0000       1.38
  +++ PostMethod.java   25 Feb 2003 23:33:46 -0000      1.39
  @@ -64,14 +64,13 @@
   
   import java.io.IOException;
   import java.io.InputStream;
  -import java.util.Vector;
   import java.util.Iterator;
  +import java.util.Vector;
   
  -import org.apache.commons.httpclient.HttpState;
   import org.apache.commons.httpclient.HttpConnection;
   import org.apache.commons.httpclient.HttpException;
  +import org.apache.commons.httpclient.HttpState;
   import org.apache.commons.httpclient.NameValuePair;
  -import org.apache.commons.httpclient.Header;
   import org.apache.commons.httpclient.URIException;
   import org.apache.commons.httpclient.util.URIUtil;
   import org.apache.commons.logging.Log;
  
  
  
  1.11      +4 -4      
jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/methods/MultipartPostMethod.java
  
  Index: MultipartPostMethod.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/methods/MultipartPostMethod.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- MultipartPostMethod.java  13 Feb 2003 21:31:53 -0000      1.10
  +++ MultipartPostMethod.java  25 Feb 2003 23:33:48 -0000      1.11
  @@ -68,8 +68,8 @@
   import java.io.IOException;
   import java.io.OutputStream;
   import java.util.ArrayList;
  -import java.util.Iterator;
   import java.util.List;
  +
   import org.apache.commons.httpclient.HttpConnection;
   import org.apache.commons.httpclient.HttpException;
   import org.apache.commons.httpclient.HttpState;
  
  
  
  1.10      +10 -11    
jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/methods/EntityEnclosingMethod.java
  
  Index: EntityEnclosingMethod.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/methods/EntityEnclosingMethod.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- EntityEnclosingMethod.java        13 Feb 2003 21:31:53 -0000      1.9
  +++ EntityEnclosingMethod.java        25 Feb 2003 23:33:48 -0000      1.10
  @@ -63,23 +63,22 @@
   
   package org.apache.commons.httpclient.methods;
   
  +import java.io.ByteArrayInputStream;
  +import java.io.ByteArrayOutputStream;
   import java.io.IOException;
   import java.io.InputStream;
  +import java.io.InputStreamReader;
   import java.io.OutputStream;
  -import java.io.ByteArrayInputStream;
   import java.io.Reader;
  -import java.io.InputStreamReader;
   import java.io.UnsupportedEncodingException;
  -import java.io.ByteArrayOutputStream;
   
  -import org.apache.commons.httpclient.HttpConstants;
  +import org.apache.commons.httpclient.ChunkedOutputStream;
  +import org.apache.commons.httpclient.ContentLengthInputStream;
   import org.apache.commons.httpclient.HttpConnection;
  +import org.apache.commons.httpclient.HttpConstants;
   import org.apache.commons.httpclient.HttpException;
   import org.apache.commons.httpclient.HttpState;
   import org.apache.commons.httpclient.HttpStatus;
  -import org.apache.commons.httpclient.Header;
  -import org.apache.commons.httpclient.ChunkedOutputStream;
  -import org.apache.commons.httpclient.ContentLengthInputStream;
   import org.apache.commons.logging.Log;
   import org.apache.commons.logging.LogFactory;
   
  
  
  
  1.10      +9 -7      jakarta-commons/httpclient/src/examples/PostXML.java
  
  Index: PostXML.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/httpclient/src/examples/PostXML.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- PostXML.java      19 Feb 2003 14:23:08 -0000      1.9
  +++ PostXML.java      25 Feb 2003 23:33:48 -0000      1.10
  @@ -60,10 +60,12 @@
    *
    */
   
  -import org.apache.commons.httpclient.*;
  -import org.apache.commons.httpclient.methods.*;
  -import java.io.*;
  -import java.net.URL;
  +import java.io.File;
  +import java.io.FileInputStream;
  +
  +import org.apache.commons.httpclient.HttpClient;
  +import org.apache.commons.httpclient.methods.EntityEnclosingMethod;
  +import org.apache.commons.httpclient.methods.PostMethod;
   
   /**
    *
  
  
  
  1.10      +7 -7      jakarta-commons/httpclient/src/examples/CookieDemoApp.java
  
  Index: CookieDemoApp.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/httpclient/src/examples/CookieDemoApp.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- CookieDemoApp.java        19 Feb 2003 14:53:02 -0000      1.9
  +++ CookieDemoApp.java        25 Feb 2003 23:33:48 -0000      1.10
  @@ -60,11 +60,11 @@
    *
    */
   
  -import org.apache.commons.httpclient.*;
  +import org.apache.commons.httpclient.Cookie;
  +import org.apache.commons.httpclient.HttpClient;
  +import org.apache.commons.httpclient.HttpState;
   import org.apache.commons.httpclient.cookie.CookiePolicy;
  -import org.apache.commons.httpclient.methods.*;
  -import java.io.*;
  -import java.net.URL;
  +import org.apache.commons.httpclient.methods.GetMethod;
   
   /**
    *
  
  
  
  1.10      +3 -8      jakarta-commons/httpclient/src/examples/TrivialApp.java
  
  Index: TrivialApp.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/httpclient/src/examples/TrivialApp.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- TrivialApp.java   13 Feb 2003 09:14:43 -0000      1.9
  +++ TrivialApp.java   25 Feb 2003 23:33:48 -0000      1.10
  @@ -62,18 +62,13 @@
    */
   
   import java.io.IOException;
  -import java.net.MalformedURLException;
  -import java.net.URL;
   
   import org.apache.commons.httpclient.Credentials;
   import org.apache.commons.httpclient.Header;
  -import org.apache.commons.httpclient.HostConfiguration;
   import org.apache.commons.httpclient.HttpClient;
   import org.apache.commons.httpclient.HttpException;
   import org.apache.commons.httpclient.HttpMethod;
   import org.apache.commons.httpclient.UsernamePasswordCredentials;
  -import org.apache.commons.httpclient.URI;
  -import org.apache.commons.httpclient.URIException;
   import org.apache.commons.httpclient.methods.GetMethod;
   
   /**
  
  
  
  1.3       +10 -7     
jakarta-commons/httpclient/src/test/org/apache/commons/httpclient/TestWebappMultiPostMethod.java
  
  Index: TestWebappMultiPostMethod.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-commons/httpclient/src/test/org/apache/commons/httpclient/TestWebappMultiPostMethod.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- TestWebappMultiPostMethod.java    20 Feb 2003 03:14:01 -0000      1.2
  +++ TestWebappMultiPostMethod.java    25 Feb 2003 23:33:48 -0000      1.3
  @@ -63,10 +63,13 @@
   
   package org.apache.commons.httpclient;
   
  -import junit.framework.*;
  -import org.apache.commons.httpclient.methods.*;
  -import org.apache.commons.httpclient.methods.multipart.*;
  -import java.io.*;
  +import junit.framework.Test;
  +import junit.framework.TestSuite;
  +
  +import org.apache.commons.httpclient.methods.MultipartPostMethod;
  +import org.apache.commons.httpclient.methods.multipart.ByteArrayPartSource;
  +import org.apache.commons.httpclient.methods.multipart.FilePart;
  +import org.apache.commons.httpclient.methods.multipart.StringPart;
   
   /**
    * Webapp tests specific to the MultiPostMethod.
  
  
  
  1.9       +4 -5      
jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/methods/multipart/Part.java
  
  Index: Part.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/methods/multipart/Part.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- Part.java 12 Feb 2003 12:30:44 -0000      1.8
  +++ Part.java 25 Feb 2003 23:33:48 -0000      1.9
  @@ -63,10 +63,9 @@
   
   package org.apache.commons.httpclient.methods.multipart;
   
  +import java.io.ByteArrayOutputStream;
   import java.io.IOException;
   import java.io.OutputStream;
  -import java.io.ByteArrayInputStream;
  -import java.io.ByteArrayOutputStream;
   
   import org.apache.commons.httpclient.HttpConstants;
   import org.apache.commons.logging.Log;
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to