@Override public InetAddress getInetAddress() { return sock.getInetAddress(); }
public InetAddress getInetAddress() { return delegate.getInetAddress(); }
/** * Returns the endpoint in the format of "address:port" */ private String endpoint() { return sock.getInetAddress() + ":" + sock.getPort(); }
public void upgradeToSSL(SSLSocketFactory sslSocketFactory, HostnameVerifier hostnameVerifier) throws IOException { SSLSocket sslSocket = sslSocketFactory.createSocket(this.socket); sslSocket.startHandshake(); socket = sslSocket; inputStream = new ByteArrayInputStream(sslSocket.getInputStream()); outputStream = new ByteArrayOutputStream(sslSocket.getOutputStream()); if (hostnameVerifier != null && !hostnameVerifier.verify(sslSocket.getInetAddress().getHostName(), sslSocket.getSession())) { throw new IdentityVerificationException("\"" + sslSocket.getInetAddress().getHostName() + "\" identity was not confirmed"); } }
final String clientId = sslSocket.getInetAddress().getHostName(); logger.debug("The request was verified with node '{}'. The hostname derived from the socket is '{}'. Authorizing Client to Load Balance data", nodeId, clientId); return clientId;
@Override public void run(){ try{ String clientAddress = client.getInetAddress().getHostAddress();
@Override public InetAddress getInetAddress() { return sock.getInetAddress(); }
/** * Returns the endpoint in the format of "address:port" */ private String endpoint() { return sock.getInetAddress() + ":" + sock.getPort(); }
/** * Retrieves the remote address to which the socket is connected. * * @return The remote address to which the socket is connected, or * {@code null} if it is not connected. */ @Override() public InetAddress getInetAddress() { return delegateSocket.getInetAddress(); }
@Override public InetAddress getInetAddress() { return sock.getInetAddress(); }
@Override public InetAddress getInetAddress() { return delegate.getInetAddress(); }
/** * Retrieves the remote address to which the socket is connected. * * @return The remote address to which the socket is connected, or * {@code null} if it is not connected. */ @Override() public InetAddress getInetAddress() { return delegateSocket.getInetAddress(); }
String getPeerHostName() { if (wrappedHost != null) { return wrappedHost; } InetAddress inetAddress = super.getInetAddress(); if (inetAddress != null) { return inetAddress.getHostName(); } return null; }
String getPeerHostName() { if (wrappedHost != null) { return wrappedHost; } InetAddress inetAddress = super.getInetAddress(); if (inetAddress != null) { return inetAddress.getHostName(); } return null; }
String getPeerHostName() { if (wrappedHost != null) { return wrappedHost; } InetAddress inetAddress = super.getInetAddress(); if (inetAddress != null) { return inetAddress.getHostName(); } return null; }
String getPeerHostName() { if (wrappedHost != null) { return wrappedHost; } InetAddress inetAddress = super.getInetAddress(); if (inetAddress != null) { return inetAddress.getHostName(); } return null; }
@Override public InetAddress getInetAddress() { if (delegate == null) { return super.getInetAddress(); } else { return delegate.getInetAddress(); } }
/** * Returns the endpoint in the format of "address:port" */ private String endpoint() { return sock.getInetAddress() + ":" + sock.getPort(); }
/** * Returns the endpoint in the format of "address:port" */ private String endpoint() { return sock.getInetAddress() + ":" + sock.getPort(); }
/** * Returns the endpoint in the format of "address:port" */ private String endpoint() { return sock.getInetAddress() + ":" + sock.getPort(); }