summaryrefslogtreecommitdiff
path: root/java/src/IceSSL/EndpointFactoryI.java
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2007-11-26 10:27:33 +0100
committerBenoit Foucher <benoit@zeroc.com>2007-11-26 10:27:33 +0100
commita680e1c9cb73caa66d2cab436e28e95924dd8dbd (patch)
tree473abb5c732c0cc5cb61b44ed5f74fc74d83b1ec /java/src/IceSSL/EndpointFactoryI.java
parentMerge branch 'master' of ssh://cvs.zeroc.com/home/git/ice (diff)
downloadice-a680e1c9cb73caa66d2cab436e28e95924dd8dbd.tar.bz2
ice-a680e1c9cb73caa66d2cab436e28e95924dd8dbd.tar.xz
ice-a680e1c9cb73caa66d2cab436e28e95924dd8dbd.zip
Remove JDK 1.4 IceSSL plugin
Diffstat (limited to 'java/src/IceSSL/EndpointFactoryI.java')
-rw-r--r--java/src/IceSSL/EndpointFactoryI.java50
1 files changed, 50 insertions, 0 deletions
diff --git a/java/src/IceSSL/EndpointFactoryI.java b/java/src/IceSSL/EndpointFactoryI.java
new file mode 100644
index 00000000000..41f1d1eb12c
--- /dev/null
+++ b/java/src/IceSSL/EndpointFactoryI.java
@@ -0,0 +1,50 @@
+// **********************************************************************
+//
+// Copyright (c) 2003-2007 ZeroC, Inc. All rights reserved.
+//
+// This copy of Ice is licensed to you under the terms described in the
+// ICE_LICENSE file included in this distribution.
+//
+// **********************************************************************
+
+package IceSSL;
+
+final class EndpointFactoryI implements IceInternal.EndpointFactory
+{
+ EndpointFactoryI(Instance instance)
+ {
+ _instance = instance;
+ }
+
+ public short
+ type()
+ {
+ return EndpointI.TYPE;
+ }
+
+ public String
+ protocol()
+ {
+ return "ssl";
+ }
+
+ public IceInternal.EndpointI
+ create(String str, boolean server)
+ {
+ return new EndpointI(_instance, str, server);
+ }
+
+ public IceInternal.EndpointI
+ read(IceInternal.BasicStream s)
+ {
+ return new EndpointI(_instance, s);
+ }
+
+ public void
+ destroy()
+ {
+ _instance = null;
+ }
+
+ private Instance _instance;
+}