Class RMILocalSocketFactory.LocalServerSocket
- java.lang.Object
-
- java.net.ServerSocket
-
- org.apache.manifoldcf.crawler.common.DCTM.RMILocalSocketFactory.LocalServerSocket
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
- Enclosing class:
- RMILocalSocketFactory
protected static class RMILocalSocketFactory.LocalServerSocket extends java.net.ServerSocket
This is a localhost-bound implementation of ServerSocket
-
-
Field Summary
Fields Modifier and Type Field Description protected int
currentPort
-
Constructor Summary
Constructors Constructor Description LocalServerSocket(int port)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
bind(java.net.SocketAddress endpoint)
Override the bind operation, to make sure we only bind to localhostvoid
bind(java.net.SocketAddress endpoint, int backlog)
Override the bind operation, to make sure we only bind to localhost-
Methods inherited from class java.net.ServerSocket
accept, close, getChannel, getInetAddress, getLocalPort, getLocalSocketAddress, getOption, getReceiveBufferSize, getReuseAddress, getSoTimeout, implAccept, isBound, isClosed, setOption, setPerformancePreferences, setReceiveBufferSize, setReuseAddress, setSocketFactory, setSoTimeout, supportedOptions, toString
-
-
-
-
Method Detail
-
bind
public void bind(java.net.SocketAddress endpoint) throws java.io.IOException
Override the bind operation, to make sure we only bind to localhost- Overrides:
bind
in classjava.net.ServerSocket
- Throws:
java.io.IOException
-
bind
public void bind(java.net.SocketAddress endpoint, int backlog) throws java.io.IOException
Override the bind operation, to make sure we only bind to localhost- Overrides:
bind
in classjava.net.ServerSocket
- Throws:
java.io.IOException
-
-