From a65b5e64b679e28a938dd7b51d931d0689eda35c Mon Sep 17 00:00:00 2001 From: Mark Spruiell Date: Tue, 28 Oct 2003 17:08:11 +0000 Subject: removing secure option --- java/demo/IceBox/hello/Client.java | 21 --------------------- 1 file changed, 21 deletions(-) (limited to 'java/demo/IceBox/hello/Client.java') diff --git a/java/demo/IceBox/hello/Client.java b/java/demo/IceBox/hello/Client.java index ec2d75184a9..4c19fe4ad54 100644 --- a/java/demo/IceBox/hello/Client.java +++ b/java/demo/IceBox/hello/Client.java @@ -26,7 +26,6 @@ public class Client "D: send greeting as batch datagram\n" + "f: flush all batch requests\n" + "T: set a timeout\n" + - "S: switch secure mode on/off\n" + "x: exit\n" + "?: help\n"); } @@ -55,7 +54,6 @@ public class Client HelloPrx datagram = HelloPrxHelper.uncheckedCast(twoway.ice_datagram()); HelloPrx batchDatagram = HelloPrxHelper.uncheckedCast(twoway.ice_batchDatagram()); - boolean secure = false; int timeout = -1; menu(); @@ -122,25 +120,6 @@ public class Client System.out.println("timeout is now set to 2000ms"); } } - else if(line.equals("S")) - { - secure = !secure; - - twoway = HelloPrxHelper.uncheckedCast(twoway.ice_secure(secure)); - oneway = HelloPrxHelper.uncheckedCast(oneway.ice_secure(secure)); - batchOneway = HelloPrxHelper.uncheckedCast(batchOneway.ice_secure(secure)); - datagram = HelloPrxHelper.uncheckedCast(datagram.ice_secure(secure)); - batchDatagram = HelloPrxHelper.uncheckedCast(batchDatagram.ice_secure(secure)); - - if(secure) - { - System.out.println("secure mode is now on"); - } - else - { - System.out.println("secure mode is now off"); - } - } else if(line.equals("x")) { // Nothing to do -- cgit v1.2.3