summaryrefslogtreecommitdiff
path: root/java
diff options
context:
space:
mode:
authoreea1 <eea1@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-12-19 21:48:34 +0000
committereea1 <eea1@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-12-19 21:48:34 +0000
commitc3379a9b64e937b63e05e5d9b79f9b7aaa1249ae (patch)
tree4fd8701493b804c3e230c1c9e4b91b14d219e22b /java
parent47c1fb145616fc1dc185311ded6d06b1428cfe7d (diff)
downloadATCD-c3379a9b64e937b63e05e5d9b79f9b7aaa1249ae.tar.gz
Changed System.err.println statements to ACE.DEBUG statements.
Fresh versions of the parser -- no changes, though.
Diffstat (limited to 'java')
-rw-r--r--java/src/AddServiceObjectNode.java2
-rw-r--r--java/src/BlobWriter.java17
-rw-r--r--java/src/ClassReader.java2
-rw-r--r--java/src/ServiceRecord.java2
-rw-r--r--java/src/parser.java2
-rw-r--r--java/src/sym.java2
6 files changed, 13 insertions, 14 deletions
diff --git a/java/src/AddServiceObjectNode.java b/java/src/AddServiceObjectNode.java
index 93d791942ae..603b5b61098 100644
--- a/java/src/AddServiceObjectNode.java
+++ b/java/src/AddServiceObjectNode.java
@@ -46,7 +46,7 @@ class AddServiceObjectNode extends ParseNode
public void apply ()
{
- System.err.println("AddServiceObjectNode apply");
+ ACE.DEBUG("AddServiceObjectNode apply");
if (JACE.ServiceConfigurator.ServiceConfig.initialize(this) == -1)
ACE.ERROR("Error adding " + this.name_);
diff --git a/java/src/BlobWriter.java b/java/src/BlobWriter.java
index 4c419a15c1f..09cc88a1f9e 100644
--- a/java/src/BlobWriter.java
+++ b/java/src/BlobWriter.java
@@ -29,6 +29,7 @@ public class BlobWriter extends BlobHandler
super (length, offset, filename);
this.mb_ = mb;
this.returnCode_ = -1;
+
}
/*******************************
@@ -107,14 +108,10 @@ public class BlobWriter extends BlobHandler
// Create the header, store the actual length in mesglen
String mesg = this.requestPrefix_ + " " + filename + " " + this.requestSuffix_;
- if (this.authentication_ != null) {
+ if (this.authentication_ != null)
mesg += "Authorization: Basic " + JACE.Connection.HTTPHelper.EncodeBase64(this.authentication_) + '\n';
- System.err.println("Real password: " + this.authentication_);
- }
- mesg += "Content-length: " + this.length_ + "\n\n";
-
- ACE.DEBUG("Sending header: " + mesg);
+ mesg += "Content-length: " + this.length_ + "\n";
try
{
@@ -139,6 +136,7 @@ public class BlobWriter extends BlobHandler
String data = this.mb_.base ().substring (this.offset_,
this.offset_ + this.length_);
+
try
{
// System.out.println (data);
@@ -161,6 +159,8 @@ public class BlobWriter extends BlobHandler
protected int receiveReply ()
{
+ System.out.println("Waiting for reply");
+
// Receive the reply from the server
StringBuffer reply = new StringBuffer (1024);
@@ -195,9 +195,10 @@ public class BlobWriter extends BlobHandler
returnCode_ = (new Integer (codeString)).intValue ();
// System.out.println (code);
- if (returnCode_ >= 200 && returnCode_ < 300) // Check if everything went smoothly
+ if (returnCode_ >= 200 && returnCode_ < 300) { // Check if everything went smoothly
+ System.out.println("We got the goodies!");
return 0;
- else
+ } else
return -1;
}
diff --git a/java/src/ClassReader.java b/java/src/ClassReader.java
index 4faf2da257d..c10c00b061c 100644
--- a/java/src/ClassReader.java
+++ b/java/src/ClassReader.java
@@ -117,7 +117,7 @@ public class ClassReader
ht.put(new Integer(i), new String(dis.readUTF()));
break;
default:
- System.err.println("Unknown type: " + type);
+ ACE.DEBUG("Unknown type: " + type);
break;
}
diff --git a/java/src/ServiceRecord.java b/java/src/ServiceRecord.java
index cb06dafa7fc..e0bd75a1405 100644
--- a/java/src/ServiceRecord.java
+++ b/java/src/ServiceRecord.java
@@ -147,8 +147,6 @@ public class ServiceRecord
{
Object result = this.invokeSimpleReflected("info");
- System.err.println("info fin");
-
if (result == null)
return null;
else
diff --git a/java/src/parser.java b/java/src/parser.java
index 54c17d9dca3..ab55b9a8a4e 100644
--- a/java/src/parser.java
+++ b/java/src/parser.java
@@ -1,7 +1,7 @@
//----------------------------------------------------
// The following code was generated by CUP v0.9e
-// Thu Dec 18 19:14:44 CST 1997
+// Fri Dec 19 15:46:53 CST 1997
//----------------------------------------------------
package JACE.ServiceConfigurator;
diff --git a/java/src/sym.java b/java/src/sym.java
index de90912c10a..8e9fc333d82 100644
--- a/java/src/sym.java
+++ b/java/src/sym.java
@@ -1,7 +1,7 @@
//----------------------------------------------------
// The following code was generated by CUP v0.9e
-// Thu Dec 18 19:14:43 CST 1997
+// Fri Dec 19 15:46:53 CST 1997
//----------------------------------------------------
package JACE.ServiceConfigurator;