diff options
author | Mark Spruiell <mes@zeroc.com> | 2006-03-22 22:13:46 +0000 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2006-03-22 22:13:46 +0000 |
commit | 8366a429b1e870c689b86d81c62d7e9a3f33f9f8 (patch) | |
tree | 1d7434ba4d2a2d5a5f1824382cb6957626b1d486 /java/src/IceSSL/EndpointFactoryI.java | |
parent | SslTransceiver -> TransceiverI (diff) | |
download | ice-8366a429b1e870c689b86d81c62d7e9a3f33f9f8.tar.bz2 ice-8366a429b1e870c689b86d81c62d7e9a3f33f9f8.tar.xz ice-8366a429b1e870c689b86d81c62d7e9a3f33f9f8.zip |
SslEndpointFactory -> EndpointFactoryI
Diffstat (limited to 'java/src/IceSSL/EndpointFactoryI.java')
-rw-r--r-- | java/src/IceSSL/EndpointFactoryI.java | 50 |
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..64970b962b5 --- /dev/null +++ b/java/src/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; +} |