private boolean isBackendLocation(HttpURI locationURI) { for (BalancerMember balancerMember : _balancerMembers) { HttpURI backendURI = balancerMember.getBackendURI(); if (backendURI.getHost().equals(locationURI.getHost()) && backendURI.getScheme().equals(locationURI.getScheme()) && backendURI.getPort() == locationURI.getPort()) { return true; } } return false; }
public int getServerPort() { if (_port <= 0) { if (_serverName == null) getServerName(); if (_port <= 0) { if (_serverName != null && _uri != null) _port = _uri.getPort(); else _port = _endp == null?0:_endp.getLocalPort(); } } if (_port <= 0) { if (getScheme().equalsIgnoreCase(URIUtil.HTTPS)) return 443; return 80; } return _port; }
@Override public int getServerPort() { if (_port <= 0) { if (_serverName == null) getServerName(); if (_port <= 0) { if (_serverName != null && _uri != null) _port = _uri.getPort(); else { InetSocketAddress local = _channel.getLocalAddress(); _port = local == null?0:local.getPort(); } } } if (_port <= 0) { if (getScheme().equalsIgnoreCase(URIUtil.HTTPS)) return 443; return 80; } return _port; }
@Override public int getServerPort() { if (_port <= 0) { if (_serverName == null) getServerName(); if (_port <= 0) { if (_serverName != null && _uri != null) _port = _uri.getPort(); else { InetSocketAddress local = _channel.getLocalAddress(); _port = local == null?0:local.getPort(); } } } if (_port <= 0) { if (getScheme().equalsIgnoreCase(URIUtil.HTTPS)) return 443; return 80; } return _port; }
@Override public int getServerPort() { if (_port <= 0) { if (_serverName == null) getServerName(); if (_port <= 0) { if (_serverName != null && _uri != null) _port = _uri.getPort(); else { InetSocketAddress local = _channel.getLocalAddress(); _port = local == null?0:local.getPort(); } } } if (_port <= 0) { if (getScheme().equalsIgnoreCase(URIUtil.HTTPS)) return 443; return 80; } return _port; }
public int getServerPort() { if (_port <= 0) { if (_serverName == null) getServerName(); if (_port <= 0) { if (_serverName != null && _uri != null) _port = _uri.getPort(); else _port = _endp == null?0:_endp.getLocalPort(); } } if (_port <= 0) { if (getScheme().equalsIgnoreCase(URIUtil.HTTPS)) return 443; return 80; } return _port; }
public int getServerPort() { if (_port <= 0) { if (_serverName == null) getServerName(); if (_port <= 0) { if (_serverName != null && _uri != null) _port = _uri.getPort(); else _port = _endp == null?0:_endp.getLocalPort(); } } if (_port <= 0) { if (getScheme().equalsIgnoreCase(URIUtil.HTTPS)) return 443; return 80; } return _port; }
public int getServerPort() { if (_port <= 0) { if (_serverName == null) getServerName(); if (_port <= 0) { if (_serverName != null && _uri != null) _port = _uri.getPort(); else _port = _endp == null?0:_endp.getLocalPort(); } } if (_port <= 0) { if (getScheme().equalsIgnoreCase(URIUtil.HTTPS)) return 443; return 80; } return _port; }
public int getServerPort() { if (_port <= 0) { if (_serverName == null) getServerName(); if (_port <= 0) { if (_serverName != null && _uri != null) _port = _uri.getPort(); else _port = _endp == null?0:_endp.getLocalPort(); } } if (_port <= 0) { if (getScheme().equalsIgnoreCase(URIUtil.HTTPS)) return 443; return 80; } return _port; }
@Override public int getServerPort() { HttpURI uri = _metadata.getURI(); int port = (uri.getHost()==null)?findServerPort():uri.getPort(); // If no port specified, return the default port for the scheme if (port <= 0) { if (getScheme().equalsIgnoreCase(URIUtil.HTTPS)) return 443; return 80; } // return a specific port return port; }
@Override public int getServerPort() { MetaData.Request metadata = _metaData; HttpURI uri = metadata==null?null:metadata.getURI(); int port = (uri==null||uri.getHost()==null)?findServerPort():uri.getPort(); // If no port specified, return the default port for the scheme if (port <= 0) { if (getScheme().equalsIgnoreCase(URIUtil.HTTPS)) return 443; return 80; } // return a specific port return port; }
_port = _uri.getPort(); if (_serverName != null) return _serverName;
_port = _uri.getPort(); if (_serverName != null) return _serverName;
String path = uri.getPath(); path = (path == null ? "" : path); int port = uri.getPort(); if (port < 0) port = HttpScheme.HTTPS.asString().equalsIgnoreCase(uri.getScheme()) ? 443 : 80;
String path = uri.getPath(); path = (path == null ? "" : path); int port = uri.getPort(); if (port < 0) port = HttpScheme.HTTPS.asString().equalsIgnoreCase(uri.getScheme()) ? 443 : 80;
if (_serverName != null) _port = _uri.getPort(); return _serverName;
String path = uri.getPath(); path = (path == null ? "" : path); int port = uri.getPort(); if (port < 0) port = HttpScheme.HTTPS.asString().equalsIgnoreCase(uri.getScheme()) ? 443 : 80;
_port = _uri.getPort(); if (_serverName != null) return _serverName;
_port = _uri.getPort(); if (_serverName != null) return _serverName;
_port = _uri.getPort(); if (_serverName != null) return _serverName;