Package net.shibboleth.shared.testing
Class InMemoryDirectory.CustomServerSocketFactory.CustomServerSocket
java.lang.Object
java.net.ServerSocket
net.shibboleth.shared.testing.InMemoryDirectory.CustomServerSocketFactory.CustomServerSocket
- All Implemented Interfaces:
Closeable,AutoCloseable
- Enclosing class:
- InMemoryDirectory.CustomServerSocketFactory
ServerSocket wrapper class to track created sockets.
-
Constructor Summary
ConstructorsConstructorDescriptionCustomServerSocket(int port, int backlog, InetAddress bindAddr) Constructor. -
Method Summary
Methods inherited from class java.net.ServerSocket
bind, bind, close, getChannel, getInetAddress, getLocalPort, getLocalSocketAddress, getOption, getReceiveBufferSize, getReuseAddress, getSoTimeout, implAccept, isBound, isClosed, setOption, setPerformancePreferences, setReceiveBufferSize, setReuseAddress, setSocketFactory, setSoTimeout, supportedOptions, toString
-
Constructor Details
-
CustomServerSocket
Constructor.- Parameters:
port- socket portbacklog- listen backlog sizebindAddr- socket address- Throws:
IOException- on error
-
-
Method Details
-
accept
- Overrides:
acceptin classServerSocket- Throws:
IOException
-