Skip to content

Instantly share code, notes, and snippets.

@ljnelson
Created November 16, 2016 00:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ljnelson/30aa7335fa900cec6f96225e44a808a6 to your computer and use it in GitHub Desktop.
Save ljnelson/30aa7335fa900cec6f96225e44a808a6 to your computer and use it in GitHub Desktop.
java.net.URI baseUri = javax.ws.rs.core.UriBuilder.fromUri("http://localhost/").port(9998).build();
org.glassfish.jersey.server.ResourceConfig config = new org.glassfish.jersey.server.ResourceConfig(developer.HelloWorldResource.class);
org.glassfish.grizzly.http.server.HttpServer server = org.glassfish.jersey.grizzly2.httpserver.GrizzlyHttpServerFactory.createHttpServer(baseUri, config);
// and so on and so on
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment