diff options
author | Mark Spruiell <mes@zeroc.com> | 2006-05-15 19:25:33 +0000 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2006-05-15 19:25:33 +0000 |
commit | 6d5b9881d73d1a5fbf99090fbd2f9aafb9b71165 (patch) | |
tree | 2843fd9501faa3ebfc6999ef7230562592a3ede8 /java/ssl/jdk1.5/IceSSL/EndpointFactoryI.java | |
parent | thread pool changes to support Java5 SSL plugin (diff) | |
download | ice-6d5b9881d73d1a5fbf99090fbd2f9aafb9b71165.tar.bz2 ice-6d5b9881d73d1a5fbf99090fbd2f9aafb9b71165.tar.xz ice-6d5b9881d73d1a5fbf99090fbd2f9aafb9b71165.zip |
adding SSL plugin for Java5
Diffstat (limited to 'java/ssl/jdk1.5/IceSSL/EndpointFactoryI.java')
-rw-r--r-- | java/ssl/jdk1.5/IceSSL/EndpointFactoryI.java | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/java/ssl/jdk1.5/IceSSL/EndpointFactoryI.java b/java/ssl/jdk1.5/IceSSL/EndpointFactoryI.java new file mode 100644 index 00000000000..64970b962b5 --- /dev/null +++ b/java/ssl/jdk1.5/IceSSL/EndpointFactoryI.java @@ -0,0 +1,50 @@ +// ********************************************************************** +// +// Copyright (c) 2003-2006 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) + { + return new EndpointI(_instance, str); + } + + public IceInternal.EndpointI + read(IceInternal.BasicStream s) + { + return new EndpointI(_instance, s); + } + + public void + destroy() + { + _instance = null; + } + + private Instance _instance; +} |