/** * Unlike the {@link #getPort()} method, this method takes into account the port offset, if the port * is <i>not</i> a fixed port and returns the absolute port number which is the sum of the port offset * and the (relative) port. * * @return port number configured for this socket binding taking port-offset into account */ public int getAbsolutePort() { return calculatePort(); }
/** * Unlike the {@link #getPort()} method, this method takes into account the port offset, if the port * is <i>not</i> a fixed port and returns the absolute port number which is the sum of the port offset * and the (relative) port. * * @return port number configured for this socket binding taking port-offset into account */ public int getAbsolutePort() { return calculatePort(); }
private List<ClientMapping> fixupMappings(List<ClientMapping> clientMappings) { for (ClientMapping mapping : clientMappings) { mapping.updatePortIfUnknown(calculatePort()); } return clientMappings; }
private List<ClientMapping> fixupMappings(List<ClientMapping> clientMappings) { for (ClientMapping mapping : clientMappings) { mapping.updatePortIfUnknown(calculatePort()); } return clientMappings; }
private List<ClientMapping> fixupMappings(List<ClientMapping> clientMappings) { for (ClientMapping mapping : clientMappings) { mapping.updatePortIfUnknown(calculatePort()); } return clientMappings; }
/** * Get the socket address. * * @return the socket address */ public InetSocketAddress getSocketAddress() { int port = calculatePort(); return new InetSocketAddress(getAddress(), port); }
/** * Get the socket address. * * @return the socket address */ public InetSocketAddress getSocketAddress() { int port = calculatePort(); return new InetSocketAddress(getAddress(), port); }
/** * Get the socket address. * * @return the socket address */ public InetSocketAddress getSocketAddress() { int port = calculatePort(); return new InetSocketAddress(getAddress(), port); }