Package org.jivesoftware.openfire
Class ServerPort
- java.lang.Object
-
- org.jivesoftware.openfire.ServerPort
-
@Deprecated public class ServerPort extends Object
Deprecated.Represents a port on which the server will listen for connections. Used to aggregate information that the rest of the system needs regarding the port while hiding implementation details.- Author:
- Iain Shigeoka
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classServerPort.TypeDeprecated.
-
Constructor Summary
Constructors Constructor Description ServerPort(int port, String name, String address, boolean isSecure, String algorithm, ServerPort.Type type)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description List<String>getDomainNames()Deprecated.Returns the logical domains for this server port.StringgetIPAddress()Deprecated.Returns the dot separated IP address for the server.intgetPort()Deprecated.Returns the port number that is being used.StringgetSecurityType()Deprecated.Returns the basic protocol/algorithm being used to secure the port connections.ServerPort.TypegetType()Deprecated.booleanisClientPort()Deprecated.Returns true if clients can connect to this port.booleanisComponentPort()Deprecated.Returns true if external components can connect to this port.booleanisConnectionManagerPort()Deprecated.Returns true if connection managers can connect to this port.booleanisSecure()Deprecated.Determines if the connection is secure.booleanisServerPort()Deprecated.Returns true if other servers can connect to this port for s2s communication.
-
-
-
Constructor Detail
-
ServerPort
public ServerPort(int port, String name, String address, boolean isSecure, String algorithm, ServerPort.Type type)Deprecated.
-
-
Method Detail
-
getPort
public int getPort()
Deprecated.Returns the port number that is being used.- Returns:
- the port number this server port is listening on.
-
getDomainNames
public List<String> getDomainNames()
Deprecated.Returns the logical domains for this server port. As multiple domains may point to the same server, this helps to define what the server considers "local".- Returns:
- the server domain name(s) as Strings.
-
getIPAddress
public String getIPAddress()
Deprecated.Returns the dot separated IP address for the server.- Returns:
- The dot separated IP address for the server
-
isSecure
public boolean isSecure()
Deprecated.Determines if the connection is secure.- Returns:
- True if the connection is secure
-
getSecurityType
public String getSecurityType()
Deprecated.Returns the basic protocol/algorithm being used to secure the port connections. An example would be "SSL" or "TLS".- Returns:
- The protocol used or null if this is not a secure server port
-
isServerPort
public boolean isServerPort()
Deprecated.Returns true if other servers can connect to this port for s2s communication.- Returns:
- true if other servers can connect to this port for s2s communication.
-
isClientPort
public boolean isClientPort()
Deprecated.Returns true if clients can connect to this port.- Returns:
- true if clients can connect to this port.
-
isComponentPort
public boolean isComponentPort()
Deprecated.Returns true if external components can connect to this port.- Returns:
- true if external components can connect to this port.
-
isConnectionManagerPort
public boolean isConnectionManagerPort()
Deprecated.Returns true if connection managers can connect to this port.- Returns:
- true if connection managers can connect to this port.
-
getType
public ServerPort.Type getType()
Deprecated.
-
-