Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 352594

Summary: getEndPoint() needed
Product: [RT] Jetty Reporter: janbo999 <janbo999>
Component: otherAssignee: Greg Wilkins <gregw>
Status: CLOSED WORKSFORME QA Contact:
Severity: enhancement    
Priority: P3 CC: mgorovoy
Version: 8.0.0   
Target Milestone: 7.5.x   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description janbo999 CLA 2011-07-20 10:27:47 EDT
please, introduce a function like:
   EndPoint Connection.getEndPoint();
it's not possible to determine remote address/port from WebSocket
Comment 1 Michael Gorovoy CLA 2011-07-22 14:45:28 EDT
Greetings,

Jetty has an AbstractConnection.getEndPoint() method that you should be able to use by adding a following method to your class. 


public static EndPoint getEndPoint(Connection connection)
{
    EndPoint endPoint = null;
    if (connection != null && (connection instanceof AbstractConnection))
    {
       endPoint = ((AbstractConnection)connection).getEndPoint();
    }
    return endPoint;
}

-Michael
Comment 2 Michael Gorovoy CLA 2011-07-22 14:48:04 EDT
Greg, could you please review this ticket for possible inclusion of suggested method Connection.getEndPoint() into Jetty 7.5.0 release.

-Michael
Comment 3 Jesse McConnell CLA 2011-09-20 15:52:12 EDT
Resolved -> Closed