/** * Resolves the effective port to use * * @param originalPort The original requested port * @return If the host entry port is positive, then it is used, otherwise * the original requested port * @see #resolvePort(int, int) */ public int resolvePort(int originalPort) { return resolvePort(originalPort, getPort()); }
/** * Resolves the effective port to use * * @param originalPort The original requested port * @return If the host entry port is positive, then it is used, otherwise * the original requested port * @see #resolvePort(int, int) */ public int resolvePort(int originalPort) { return resolvePort(originalPort, getPort()); }
normal.setHost(host); normal.setHostName(entry.resolveHostName(host)); normal.setPort(entry.resolvePort(port)); normal.setUsername(entry.resolveUsername(username));
normal.setHost(host); normal.setHostName(entry.resolveHostName(host)); normal.setPort(entry.resolvePort(port)); normal.setUsername(entry.resolveUsername(username));