public class ClientMapping extends Object implements Serializable
Constructor and Description |
---|
ClientMapping(InetAddress sourceNetworkAddress,
int sourceNetworkMaskBits,
String destinationAddress,
int destinationPort)
Construct a new client mapping.
|
Modifier and Type | Method and Description |
---|---|
String |
getDestinationAddress()
The destination host or IP that the client should connect to.
|
int |
getDestinationPort()
The destination port that the client should connect to.
|
InetAddress |
getSourceNetworkAddress()
Source network the client connection binds on.
|
int |
getSourceNetworkMaskBits()
Source network the client connection binds on.
|
public ClientMapping(InetAddress sourceNetworkAddress, int sourceNetworkMaskBits, String destinationAddress, int destinationPort)
sourceNetworkAddress
- The IP of the source network to match the outbound interface againstsourceNetworkMaskBits
- The masked portion of the source network to match the outbound interface againstdestinationAddress
- The destination host/ip the client should connect to.destinationPort
- The destination port the client should connect to. A value of -1 indicates that
the effective server listening port should be used.public InetAddress getSourceNetworkAddress()
getSourceNetworkMaskBits()
against the desired client host network interface, and if matched the
client should connect to the corresponding destination values..public int getSourceNetworkMaskBits()
getSourceNetworkAddress()
against the desired client host network interface, and if matched the
client should connect to the corresponding destination values.public String getDestinationAddress()
public int getDestinationPort()
Copyright © 2023 JBoss by Red Hat. All rights reserved.