Holds the channel and socket for an NIO endpoint.
535455565758596061626364
{ response.setContentType("text/plain"); EndPoint endPoint = baseRequest.getHttpChannel().getEndPoint(); assertThat("Endpoint",endPoint,instanceOf(ChannelEndPoint.class)); ChannelEndPoint channelEndPoint = (ChannelEndPoint)endPoint; Socket socket = channelEndPoint.getSocket(); ServerConnector connector = (ServerConnector)baseRequest.getHttpChannel().getConnector(); PrintWriter out = response.getWriter(); out.printf("connector.getReuseAddress() = %b%n",connector.getReuseAddress());