users@grizzly.java.net

Re: SSL how to?

From: kevinb <kbrisso_at_gmail.com>
Date: Mon, 9 Jan 2012 12:09:11 -0800 (PST)

Hi Ryan,

Thanks for the help and the code example.

Below is how I am creating the web server. One question I have is; can the
create method take "https" as the URI? It looks like the javadoc states this
"The URI scheme must be equal to http"



private static URI getBaseURI() {

        return UriBuilder.fromUri("https://localhost/").port(4463).build();
    }
    public static final URI BASE_URI = getBaseURI();

    protected static HttpServer startServer() throws IOException {
        final Map<String, String> initParams = new HashMap<String,
String>();

        initParams.put("com.sun.jersey.config.property.packages",
                "com.frk.mw.trillium");

        System.out.println("Starting grizzly...");


        return GrizzlyWebContainerFactory.create(BASE_URI, initParams);

    }


Many thanks to all of you for help!

Kevin


--
View this message in context: http://grizzly.1045725.n5.nabble.com/SSL-how-to-tp5126906p5132304.html
Sent from the Grizzly - Users mailing list archive at Nabble.com.