1 //
2 // Copyright (c) ZeroC, Inc. All rights reserved.
3 //
4 
5 package IceSSL;
6 
7 final class EndpointFactoryI extends IceInternal.EndpointFactoryWithUnderlying
8 {
EndpointFactoryI(Instance instance, short type)9     EndpointFactoryI(Instance instance, short type)
10     {
11         super(instance, type);
12         _instance = instance;
13     }
14 
15     @Override
cloneWithUnderlying(IceInternal.ProtocolInstance instance, short underlying)16     public IceInternal.EndpointFactory cloneWithUnderlying(IceInternal.ProtocolInstance instance,
17                                                            short underlying)
18     {
19         return new EndpointFactoryI(new Instance(_instance.engine(), instance.type(), instance.protocol()), underlying);
20     }
21 
22     @Override
createWithUnderlying(IceInternal.EndpointI underlying, java.util.ArrayList<String> args, boolean oaEndpoint)23     public IceInternal.EndpointI createWithUnderlying(IceInternal.EndpointI underlying,
24                                                       java.util.ArrayList<String> args,
25                                                       boolean oaEndpoint)
26     {
27         return new EndpointI(_instance, underlying);
28     }
29 
30     @Override
readWithUnderlying(IceInternal.EndpointI underlying, Ice.InputStream s)31     public IceInternal.EndpointI readWithUnderlying(IceInternal.EndpointI underlying, Ice.InputStream s)
32     {
33         return new EndpointI(_instance, underlying);
34     }
35 
36     private Instance _instance;
37 }
38