vmassol 01/11/16 11:06:36
Modified: src/framework/share/org/apache/cactus/client
AutoReadHttpURLConnection.java
Log:
removed explicit logging of entries and exits of methods (now done using aspectj)
Revision Changes Path
1.8 +1 -11
jakarta-cactus/src/framework/share/org/apache/cactus/client/AutoReadHttpURLConnection.java
Index: AutoReadHttpURLConnection.java
===================================================================
RCS file:
/home/cvs/jakarta-cactus/src/framework/share/org/apache/cactus/client/AutoReadHttpURLConnection.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- AutoReadHttpURLConnection.java 2001/09/14 20:15:03 1.7
+++ AutoReadHttpURLConnection.java 2001/11/16 19:06:36 1.8
@@ -74,7 +74,7 @@
* @author <a href="mailto:[EMAIL PROTECTED]">Bob Davison</a>
* @author <a href="mailto:[EMAIL PROTECTED]">Vincent Massol</a>
*
- * @version $Id: AutoReadHttpURLConnection.java,v 1.7 2001/09/14 20:15:03 pier Exp $
+ * @version $Id: AutoReadHttpURLConnection.java,v 1.8 2001/11/16 19:06:36 vmassol
Exp $
*/
final class AutoReadHttpURLConnection extends HttpURLConnection
{
@@ -119,8 +119,6 @@
*/
public synchronized InputStream getInputStream() throws IOException
{
- logger.entry("getInputStream()");
-
logger.debug("Original connection = " + this.delegate);
if (streamBuffer == null) {
@@ -128,27 +126,21 @@
streamBuffer = bufferInputStream(is);
}
- logger.exit("getInputStream");
return streamBuffer;
}
InputStream bufferInputStream(InputStream is) throws IOException
{
- logger.entry("bufferInputStream(...)");
-
ByteArrayOutputStream os = new ByteArrayOutputStream(this.chunkSize);
copy(is, os);
ByteArrayInputStream bais =
new ByteArrayInputStream(os.toByteArray());
- logger.exit("bufferInputStream");
return bais;
}
void copy(InputStream is, OutputStream os) throws IOException
{
- logger.entry("copy(...)");
-
// Only copy if there are data to copy ... The problem is that not
// all servers return a content-length header. If there is no header
// getContentLength() returns -1. It seems to work and it seems
@@ -168,8 +160,6 @@
}
}
-
- logger.exit("copy");
}
// Delegated methods
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>