GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — java-docker-build-tutorial/src/main/java/com/miguno/App.java at master · aras112/java-docker-build-tutorial

Expand file tree

/

App.java

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
31 lines (23 loc) · 1.07 KB
/

App.java

Copy path

File metadata and controls

31 lines (23 loc) · 1.07 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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.