GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — java-docker-build-tutorial/src/main/java/com/miguno/App.java at master · Aarif92/java-docker-build-tutorial Expand file tree/ Copy pathApp.javaMore file actions 31 lines (23 loc) · 1.07 KB / Copy pathApp.javaFile metadata and controls31 lines (23 loc) · 1.07 KB 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 package com.miguno; import org.glassfish.grizzly.http.server.HttpServer; import org.glassfish.jersey.grizzly2.httpserver.GrizzlyHttpServerFactory; import org.glassfish.jersey.server.ResourceConfig; import java.net.URI; public class App { protected static final String BASE_URI = "http://0.0.0.0:8123/"; /** * Starts Grizzly HTTP server exposing JAX-RS resources defined in this application. */ protected static HttpServer startServer() { // create a resource config that scans for JAX-RS resources and providers in com.miguno package final ResourceConfig rc = new ResourceConfig().packages("com.miguno"); // create and start a new instance of grizzly http server // exposing the Jersey application at BASE_URI return GrizzlyHttpServerFactory.createHttpServer(URI.create(BASE_URI), rc); } public static void main(String[] args) { startServer(); System.out.println(String.format("Jersey app started with WADL available at %sapplication.wadl", BASE_URI)); System.out.println(String.format("Endpoint is available at %sstatus", BASE_URI)); } } |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |