@Override public InetSocketAddress getRemoteAddress() { return (InetSocketAddress) connection.getPeerAddress(); }
@Override public InetSocketAddress getRemoteAddress() { return (InetSocketAddress) connection.getPeerAddress(); }
@Override public Object evaluate() { return connection.getPeerAddress(); } });
@Override public Object evaluate() { return connection.getPeerAddress(); } });
@Override public Object evaluate() { return connection.getPeerAddress(); } });
public static String getPeerHostName(final Connection<?> connection) { // try to get the peer's host name we try to connect to final Object addr = connection.getPeerAddress(); return (addr instanceof InetSocketAddress) ? ((InetSocketAddress) addr).getHostString() : //supported in 1.7+ null; } }
/** * @return the Internet Protocol (IP) source port of the client or last * proxy that sent the request. */ public int getRemotePort() { if (remotePort == -1) { remotePort = ((InetSocketAddress) connection.getPeerAddress()).getPort(); } return remotePort; }
/** * @return the Internet Protocol (IP) source port of the client or last * proxy that sent the request. */ public int getRemotePort() { if (remotePort == -1) { remotePort = ((InetSocketAddress) connection.getPeerAddress()).getPort(); } return remotePort; }
public static String getPeerHostName(final Connection<?> connection) { // try to get the peer's host name we try to connect to final Object addr = connection.getPeerAddress(); return (addr instanceof InetSocketAddress) ? ((InetSocketAddress) addr).getHostString() : //supported in 1.7+ null; } }
public static String getPeerHostName(final Connection<?> connection) { // try to get the peer's host name we try to connect to final Object addr = connection.getPeerAddress(); return (addr instanceof InetSocketAddress) ? ((InetSocketAddress) addr).getHostString() : //supported in 1.7+ null; } }
/** * @return the Internet Protocol (IP) source port of the client or last * proxy that sent the request. */ public int getRemotePort() { if (remotePort == -1) { remotePort = ((InetSocketAddress) connection.getPeerAddress()).getPort(); } return remotePort; }
public static String getPeerHostName(final Connection<?> connection) { // try to get the peer's host name we try to connect to final Object addr = connection.getPeerAddress(); return (addr instanceof InetSocketAddress) ? ((InetSocketAddress) addr).getHostString() : //supported in 1.7+ null; } }
public static String getPeerHostName(final Connection<?> connection) { // try to get the peer's host name we try to connect to final Object addr = connection.getPeerAddress(); return (addr instanceof InetSocketAddress) ? ((InetSocketAddress) addr).getHostString() : //supported in 1.7+ null; } }
public static String getPeerHostName(final Connection<?> connection) { // try to get the peer's host name we try to connect to final Object addr = connection.getPeerAddress(); return (addr instanceof InetSocketAddress) ? ((InetSocketAddress) addr).getHostString() : //supported in 1.7+ null; } }
@Override public void onConnectEvent(final Connection connection) { grizzlyMonitoring.getConnectionQueueProbeProvider().connectionConnectedEvent( monitoringId, connection.hashCode(), connection.getPeerAddress().toString()); }
/** * @return the {@link DataChunk} representing the Internet Protocol (IP) * address of the client or last proxy that sent the request. */ public DataChunk remoteAddr() { if (remoteAddressC.isNull()) { remoteAddressC .setString(((InetSocketAddress) connection.getPeerAddress()) .getAddress().getHostAddress()); } return remoteAddressC; }
/** * @return the {@link DataChunk} representing the Internet Protocol (IP) * address of the client or last proxy that sent the request. */ public DataChunk remoteAddr() { if (remoteAddressC.isNull()) { remoteAddressC .setString(((InetSocketAddress) connection.getPeerAddress()) .getAddress().getHostAddress()); } return remoteAddressC; }
/** * @return the {@link DataChunk} representing the Internet Protocol (IP) * address of the client or last proxy that sent the request. */ public DataChunk remoteAddr() { if (remoteAddressC.isNull()) { remoteAddressC .setString(((InetSocketAddress) connection.getPeerAddress()) .getAddress().getHostAddress()); } return remoteAddressC; }
/** * @return the {@link DataChunk} representing the Internet Protocol (IP) * address of the client or last proxy that sent the request. */ public DataChunk remoteAddr() { if (remoteAddressC.isNull()) { remoteAddressC .setString(((InetSocketAddress) connection.getPeerAddress()) .getAddress().getHostAddress()); } return remoteAddressC; }
private DefaultHttpRequestContext createRequestContext(FilterChainContext ctx, String scheme, GrizzlyHttpRequestAdapter httpRequest) { DefaultClientConnection clientConnection; SSLSession sslSession = (SSLSession) ctx.getAttributes().getAttribute(SSL_SESSION_ATTRIBUTE_KEY); if (sslSession != null) { clientConnection = new DefaultClientConnection(sslSession, (InetSocketAddress) ctx.getConnection().getPeerAddress()); } else { clientConnection = new DefaultClientConnection((InetSocketAddress) ctx.getConnection().getPeerAddress()); } ServerConnection serverConnection = new DefaultServerConnection((InetSocketAddress) ctx.getConnection().getLocalAddress()); return new DefaultHttpRequestContext(scheme, httpRequest, clientConnection, serverConnection); }