public abstract class AbstractListener extends Object implements Listener
Constructor and Description |
---|
AbstractListener(String serverAddress,
int port,
boolean implicitSsl,
SslConfiguration sslConfiguration,
DataConnectionConfiguration dataConnectionConfig,
int idleTimeout,
List<InetAddress> blockedAddresses,
List<org.apache.mina.filter.firewall.Subnet> blockedSubnets)
Deprecated.
Use the constructor with IpFilter instead.
Constructor for internal use, do not use directly. Instead use
ListenerFactory |
AbstractListener(String serverAddress,
int port,
boolean implicitSsl,
SslConfiguration sslConfiguration,
DataConnectionConfiguration dataConnectionConfig,
int idleTimeout,
SessionFilter sessionFilter)
Constructor for internal use, do not use directly.
|
Modifier and Type | Method and Description |
---|---|
List<InetAddress> |
getBlockedAddresses()
Retrives the
InetAddress for which this listener blocks
connections |
List<org.apache.mina.filter.firewall.Subnet> |
getBlockedSubnets()
Retrieves the
Subnet s for this listener blocks connections |
DataConnectionConfiguration |
getDataConnectionConfiguration()
Get configuration for data connections made within this listener
|
int |
getIdleTimeout()
Get the number of seconds during which no network activity
is allowed before a session is closed due to inactivity.
|
int |
getPort()
Get the port on which this listener is waiting for requests.
|
String |
getServerAddress()
Get the
InetAddress used for binding the local socket. |
SessionFilter |
getSessionFilter()
Returns the
SessionFilter associated with this listener. |
SslConfiguration |
getSslConfiguration()
Get the
SslConfiguration used for this listener |
boolean |
isImplicitSsl()
Is this listener in SSL mode automatically or must the client explicitly
request to use SSL
|
protected void |
setPort(int port)
Used internally to update the port after binding
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getActiveSessions, isStopped, isSuspended, resume, start, stop, suspend
@Deprecated public AbstractListener(String serverAddress, int port, boolean implicitSsl, SslConfiguration sslConfiguration, DataConnectionConfiguration dataConnectionConfig, int idleTimeout, List<InetAddress> blockedAddresses, List<org.apache.mina.filter.firewall.Subnet> blockedSubnets)
ListenerFactory
public AbstractListener(String serverAddress, int port, boolean implicitSsl, SslConfiguration sslConfiguration, DataConnectionConfiguration dataConnectionConfig, int idleTimeout, SessionFilter sessionFilter)
ListenerFactory
public boolean isImplicitSsl()
isImplicitSsl
in interface Listener
public int getPort()
protected void setPort(int port)
port
- public String getServerAddress()
InetAddress
used for binding the local socket. Defaults
to null, that is, the server binds to all available network interfacesgetServerAddress
in interface Listener
InetAddress
, if setpublic SslConfiguration getSslConfiguration()
SslConfiguration
used for this listenergetSslConfiguration
in interface Listener
SslConfiguration
public DataConnectionConfiguration getDataConnectionConfiguration()
getDataConnectionConfiguration
in interface Listener
public int getIdleTimeout()
getIdleTimeout
in interface Listener
public List<InetAddress> getBlockedAddresses()
InetAddress
for which this listener blocks
connectionsgetBlockedAddresses
in interface Listener
InetAddress
espublic List<org.apache.mina.filter.firewall.Subnet> getBlockedSubnets()
Subnet
s for this listener blocks connectionsgetBlockedSubnets
in interface Listener
Subnet
spublic SessionFilter getSessionFilter()
Listener
SessionFilter
associated with this listener. May
return null
.getSessionFilter
in interface Listener
SessionFilter
associated with this listener. May
return null
.Copyright © 2003–2023 The Apache Software Foundation. All rights reserved.