Class IpPermission
- All Implemented Interfaces:
Serializable
,Cloneable
IP addresses and port settings used to limit access by incoming traffic (players) to a fleet. Permissions specify a range of IP addresses and port settings that must be used to gain access to a game server on a fleet machine.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
Starting value for a range of allowed port numbers.Range of allowed IP addresses.Network communication protocol used by the fleet.Ending value for a range of allowed port numbers.int
hashCode()
void
setFromPort
(Integer fromPort) Starting value for a range of allowed port numbers.void
setIpRange
(String ipRange) Range of allowed IP addresses.void
setProtocol
(IpProtocol protocol) Network communication protocol used by the fleet.void
setProtocol
(String protocol) Network communication protocol used by the fleet.void
Ending value for a range of allowed port numbers.toString()
Returns a string representation of this object; useful for testing and debugging.withFromPort
(Integer fromPort) Starting value for a range of allowed port numbers.withIpRange
(String ipRange) Range of allowed IP addresses.withProtocol
(IpProtocol protocol) Network communication protocol used by the fleet.withProtocol
(String protocol) Network communication protocol used by the fleet.withToPort
(Integer toPort) Ending value for a range of allowed port numbers.
-
Constructor Details
-
IpPermission
public IpPermission()
-
-
Method Details
-
setFromPort
Starting value for a range of allowed port numbers.
- Parameters:
fromPort
- Starting value for a range of allowed port numbers.
-
getFromPort
Starting value for a range of allowed port numbers.
- Returns:
- Starting value for a range of allowed port numbers.
-
withFromPort
Starting value for a range of allowed port numbers.
- Parameters:
fromPort
- Starting value for a range of allowed port numbers.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setToPort
Ending value for a range of allowed port numbers. Port numbers are end-inclusive. This value must be higher than FromPort.
- Parameters:
toPort
- Ending value for a range of allowed port numbers. Port numbers are end-inclusive. This value must be higher than FromPort.
-
getToPort
Ending value for a range of allowed port numbers. Port numbers are end-inclusive. This value must be higher than FromPort.
- Returns:
- Ending value for a range of allowed port numbers. Port numbers are end-inclusive. This value must be higher than FromPort.
-
withToPort
Ending value for a range of allowed port numbers. Port numbers are end-inclusive. This value must be higher than FromPort.
- Parameters:
toPort
- Ending value for a range of allowed port numbers. Port numbers are end-inclusive. This value must be higher than FromPort.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setIpRange
Range of allowed IP addresses. This value must be expressed in CIDR notation. Example: "
000.000.000.000/[subnet mask]
" or optionally the shortened version "0.0.0.0/[subnet mask]
".- Parameters:
ipRange
- Range of allowed IP addresses. This value must be expressed in CIDR notation. Example: "000.000.000.000/[subnet mask]
" or optionally the shortened version "0.0.0.0/[subnet mask]
".
-
getIpRange
Range of allowed IP addresses. This value must be expressed in CIDR notation. Example: "
000.000.000.000/[subnet mask]
" or optionally the shortened version "0.0.0.0/[subnet mask]
".- Returns:
- Range of allowed IP addresses. This value must be expressed in CIDR notation. Example:
"
000.000.000.000/[subnet mask]
" or optionally the shortened version "0.0.0.0/[subnet mask]
".
-
withIpRange
Range of allowed IP addresses. This value must be expressed in CIDR notation. Example: "
000.000.000.000/[subnet mask]
" or optionally the shortened version "0.0.0.0/[subnet mask]
".- Parameters:
ipRange
- Range of allowed IP addresses. This value must be expressed in CIDR notation. Example: "000.000.000.000/[subnet mask]
" or optionally the shortened version "0.0.0.0/[subnet mask]
".- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setProtocol
Network communication protocol used by the fleet.
- Parameters:
protocol
- Network communication protocol used by the fleet.- See Also:
-
getProtocol
Network communication protocol used by the fleet.
- Returns:
- Network communication protocol used by the fleet.
- See Also:
-
withProtocol
Network communication protocol used by the fleet.
- Parameters:
protocol
- Network communication protocol used by the fleet.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
setProtocol
Network communication protocol used by the fleet.
- Parameters:
protocol
- Network communication protocol used by the fleet.- See Also:
-
withProtocol
Network communication protocol used by the fleet.
- Parameters:
protocol
- Network communication protocol used by the fleet.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-