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 class
ServerPort.Type
Deprecated.
-
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.String
getIPAddress()
Deprecated.Returns the dot separated IP address for the server.int
getPort()
Deprecated.Returns the port number that is being used.String
getSecurityType()
Deprecated.Returns the basic protocol/algorithm being used to secure the port connections.ServerPort.Type
getType()
Deprecated.boolean
isClientPort()
Deprecated.Returns true if clients can connect to this port.boolean
isComponentPort()
Deprecated.Returns true if external components can connect to this port.boolean
isConnectionManagerPort()
Deprecated.Returns true if connection managers can connect to this port.boolean
isSecure()
Deprecated.Determines if the connection is secure.boolean
isServerPort()
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.
-
-