commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From oglu...@apache.org
Subject cvs commit: jakarta-commons/httpclient/src/test/org/apache/commons/httpclient SimpleHttpConnection.java
Date Fri, 11 Oct 2002 12:59:07 GMT
oglueck     2002/10/11 05:59:07

  Modified:    httpclient/src/test/org/apache/commons/httpclient
                        SimpleHttpConnection.java
  Log:
  fixed indentation
  
  Revision  Changes    Path
  1.3       +32 -32    jakarta-commons/httpclient/src/test/org/apache/commons/httpclient/SimpleHttpConnection.java
  
  Index: SimpleHttpConnection.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/httpclient/src/test/org/apache/commons/httpclient/SimpleHttpConnection.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- SimpleHttpConnection.java	11 Oct 2002 12:32:30 -0000	1.2
  +++ SimpleHttpConnection.java	11 Oct 2002 12:59:07 -0000	1.3
  @@ -87,8 +87,8 @@
   
       Vector headers = new Vector();
       Vector bodies = new Vector();
  -	BufferedReader headerReader = null;
  -	ByteArrayInputStream bodyInputStream = null;
  +    BufferedReader headerReader = null;
  +    ByteArrayInputStream bodyInputStream = null;
   
       public void addResponse(String header) {
           addResponse(header, "");
  @@ -99,21 +99,21 @@
           bodies.add(body);
       }
   
  -	public SimpleHttpConnection(String header, String body) {
  -		this();
  +    public SimpleHttpConnection(String header, String body) {
  +        this();
           headers.add(header);
           bodies.add(body);
  -	}
  -	
  -	public SimpleHttpConnection() {
  -		super(null, -1, "localhost", 80, false);
  -	}
  -	
  -	public SimpleHttpConnection(String host, int port, boolean isSecure){
  -		super(host, port, isSecure);
  -	}
  +    }
  +
  +    public SimpleHttpConnection() {
  +        super(null, -1, "localhost", 80, false);
  +    }
   
  -	public void open() throws IOException {
  +    public SimpleHttpConnection(String host, int port, boolean isSecure){
  +        super(host, port, isSecure);
  +    }
  +
  +    public void open() throws IOException {
           if (headerReader != null) return;
   
           try{
  @@ -129,35 +129,35 @@
           }
       }
   
  -	public void close() {
  +    public void close() {
           if (headerReader != null) {
               try { headerReader.close(); } catch(IOException e) {}
  -        headerReader = null;
  +            headerReader = null;
           }
           if (bodyInputStream != null) {
               try { bodyInputStream.close(); } catch(IOException e) {}
  -        bodyInputStream = null;
  -	}
  +            bodyInputStream = null;
  +        }
       }
   
  -	public void write(byte[] data) 
  +    public void write(byte[] data)
       throws IOException, IllegalStateException, HttpRecoverableException {
  -	}
  +    }
   
  -	public void writeLine() 
  -	throws IOException, IllegalStateException, HttpRecoverableException {
  -	}
  +    public void writeLine()
  +    throws IOException, IllegalStateException, HttpRecoverableException {
  +    }
   
  -	public String readLine()
  -	throws IOException, IllegalStateException {
  +    public String readLine()
  +    throws IOException, IllegalStateException {
           String str = headerReader.readLine();
           log.debug("read: " + str);
           return str;
  -	}
  +    }
   
  -	public InputStream getResponseInputStream(HttpMethod method) {
  -		return bodyInputStream;
  -	}
  +    public InputStream getResponseInputStream(HttpMethod method) {
  +        return bodyInputStream;
  +    }
   
   }
   
  
  
  

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