public class SniProxySocketFactory extends Object implements SocketFactory, Declarable
SocketFactory
that connects a client to locators and servers
through a SNI proxy.DEFAULT
Constructor and Description |
---|
SniProxySocketFactory() |
SniProxySocketFactory(String hostname,
int port) |
Modifier and Type | Method and Description |
---|---|
Socket |
createSocket()
Create an unconnected tcp socket for establishing a client.
|
String |
getHostname() |
int |
getPort() |
void |
initialize(Cache cache,
Properties properties)
Initializes a user-defined object, owned by the given cache, using the given properties.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
init
public SniProxySocketFactory()
public SniProxySocketFactory(String hostname, int port)
public void initialize(Cache cache, Properties properties)
Declarable
Cache
initialization to fail.
Note that if this method is implemented then the deprecated init method should not be
implemented.
The product will call both methods assuming that only one will have a non-default
implementation.initialize
in interface Declarable
cache
- the cache that owns this declarableproperties
- Contains the parameters declared in the declarative xml file.public Socket createSocket() throws IOException
SocketFactory
createSocket
in interface SocketFactory
IOException
- if the socket cannot be createdpublic String getHostname()
public int getPort()