summaryrefslogtreecommitdiff
path: root/java/src/IceInternal/TcpEndpointFactory.java
diff options
context:
space:
mode:
Diffstat (limited to 'java/src/IceInternal/TcpEndpointFactory.java')
-rw-r--r--java/src/IceInternal/TcpEndpointFactory.java51
1 files changed, 51 insertions, 0 deletions
diff --git a/java/src/IceInternal/TcpEndpointFactory.java b/java/src/IceInternal/TcpEndpointFactory.java
new file mode 100644
index 00000000000..0d941af639d
--- /dev/null
+++ b/java/src/IceInternal/TcpEndpointFactory.java
@@ -0,0 +1,51 @@
+// **********************************************************************
+//
+// Copyright (c) 2002
+// MutableRealms, Inc.
+// Huntsville, AL, USA
+//
+// All Rights Reserved
+//
+// **********************************************************************
+
+package IceInternal;
+
+final class TcpEndpointFactory implements EndpointFactory
+{
+ TcpEndpointFactory(Instance instance)
+ {
+ _instance = instance;
+ }
+
+ public short
+ type()
+ {
+ return TcpEndpoint.TYPE;
+ }
+
+ public String
+ protocol()
+ {
+ return "tcp";
+ }
+
+ public Endpoint
+ create(String str)
+ {
+ return new TcpEndpoint(_instance, str);
+ }
+
+ public Endpoint
+ read(BasicStream s)
+ {
+ return new TcpEndpoint(s);
+ }
+
+ public void
+ destroy()
+ {
+ _instance = null;
+ }
+
+ private Instance _instance;
+}