Hello again,

The learning curve continues and I am once more in need of your invaluable 
assitance. I need to add SSL support to :

public static void main(String[] args) {
        try {
            // Create a new Component.
            Component component = new Component();
            // Add a new HTTP server listening on port 8182.
            component.getServers().add(Protocol.HTTPS, 8182);
            
            // Attach the sample application.
            component.getDefaultHost().attach(
                    new EntryPointApp(component.getContext()));

            // Start the component.
            component.start();
        } catch (Exception e) {
            // Something is wrong.
            e.printStackTrace();
        }
    }

I am guessing that I need to get hold of the server object some how and set 
the SSL key path (which i have created). I am confused as to role that 
Component has here. In other code i have seen the following to create a new 
Server instance:

new Server(Protocol.HTTPS, 8182, restlet).start();

Any help on the above greatly appreciated.

cheers,
Hugh

Reply via email to