WE had this problem as well, and we didn't even bother to subclass, we just
changed the word protected to public and let it be.
But I do think there ought to at least be a "get port" method in the
baseclass

-----Original Message-----
From: Rob Walker [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 23, 2002 2:07 AM
To: [EMAIL PROTECTED]
Subject: Dynamic Web Server port assignment


Part of our app. creates a "callback" web server, for receiving asynchronous

event notification.

I'd like to have the WebServer class pick a dynamic port for me, and from
what I 
can see if a pass a port number of "0" into the constructor it will do this.
Snag is, 
the serverSocket field is a protected variable and there's no getXXX method
to 
gbet the actual port number assigned. Seems I can probably subclass 
WebServer to get around this, but wondered if anyone felt it merited
inclusion in 
the base class.

-- Rob Walker
SoftSell Business Systems, Ltd.
' testing solutions for a changing world '
 
+44 (20) 7488 3470
www.softsell.com
[EMAIL PROTECTED]

Reply via email to