Alex,
It looks fine to me at the Restlet level... In Component, the code looks ok:
public Server add(Protocol protocol, int port) {
Server result = new Server(getContext(), protocol, null, port,
getTarget());
add(result);
return result;
}
At the Simple HTTP connector level, the code is fine too:
@Override
public void start() throws Exception {
setSocket(new ServerSocket(getServer().getPort()));
setConfidential(false);
setHandler(PipelineHandlerFactory.getInstance(
new SimpleProtocolHandler(this), getDefaultThreads(),
getMaxWaitTimeMs()));
setConnection(ConnectionFactory.getConnection(getHandler(),
new SimplePipelineFactory()));
getConnection().connect(getSocket());
super.start();
}
Could you set-up a test case to help us reproduce the issue?
Best regards,
Jerome
> -----Message d'origine-----
> De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la
> part de Alex Milowski
> Envoyé : jeudi 5 juillet 2007 23:03
> À : [email protected]
> Objet : Server Interface Binding
>
> I have code (components) that use the following API call:
>
> String addr = ...
> int port = ...
> getServers().add(Protocol.HTTPS,addr,port);
>
> but I still see the process binding to the any interface "*" rather
> than a specific interface.
>
> I'm using the Simple framework. Is there a limitation here or a trick
> that I need to do to get this to work?
>
> --Alex Milowski