Package helma.util
Class ParanoidServerSocket
java.lang.Object
java.net.ServerSocket
helma.util.ParanoidServerSocket
- All Implemented Interfaces:
Closeable
,AutoCloseable
A server socket that can allow connections to only a few selected hosts.
-
Constructor Summary
ConstructorsConstructorDescriptionParanoidServerSocket
(int port) Creates a new ParanoidServerSocket object.ParanoidServerSocket
(int port, InetAddressFilter filter) Creates a new ParanoidServerSocket object. -
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
-
ParanoidServerSocket
Creates a new ParanoidServerSocket object.- Parameters:
port
- ...- Throws:
IOException
- ...
-
ParanoidServerSocket
Creates a new ParanoidServerSocket object.- Parameters:
port
- ...filter
- ...- Throws:
IOException
- ...
-
-
Method Details
-
accept
- Overrides:
accept
in classServerSocket
- Returns:
- ...
- Throws:
IOException
- ...
-
setFilter
- Parameters:
filter
- ...
-
getFilter
- Returns:
- ...
-