DelegatingSocketFactory

public abstract class DelegatingSocketFactory extends SocketFactory

A javax.net.SocketFactory that delegates all creation requests to origin and then gives the actual implementation a chance to configure the created socket.

Inheritors

Constructors

Properties

Link copied to clipboard
private final SocketFactory origin

Base SocketFactory to which all creation requests are delegated.

Functions

Link copied to clipboard
public abstract Unit configure(Socket socket)

Configure a socket after it is created by origin and before it is returned by create.

Link copied to clipboard
public Socket createSocket(InetAddress host, Integer port)
public Socket createSocket(String host, Integer port)
public Socket createSocket(InetAddress address, Integer port, InetAddress localAddress, Integer localPort)
public Socket createSocket(String host, Integer port, InetAddress localHost, Integer localPort)
Link copied to clipboard
public final SocketFactory getOrigin()

Base SocketFactory to which all creation requests are delegated.