Class App
- java.lang.Object
-
- org.glassfish.jersey.examples.helloworld.App
-
public class App extends Object
This is the example entry point, where Jersey application for the example gets populated and published using the Grizzly 2 HTTP container.- Author:
- Marek Potociar
-
-
Field Summary
Fields Modifier and Type Field Description static booleangetMethodCalledTest assertion indicator that a GET method handler has been called.static booleanheadMethodCalledTest assertion indicator that a HEAD method handler has been called.static StringROOT_PATH"Hello World" root resource path.
-
Constructor Summary
Constructors Constructor Description App()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.glassfish.jersey.server.ResourceConfigcreate()Create example application resource configuration.static voidmain(String[] args)Main application entry point.
-
-
-
Field Detail
-
ROOT_PATH
public static final String ROOT_PATH
"Hello World" root resource path.- See Also:
- Constant Field Values
-
getMethodCalled
public static volatile boolean getMethodCalled
Test assertion indicator that a GET method handler has been called.
-
headMethodCalled
public static volatile boolean headMethodCalled
Test assertion indicator that a HEAD method handler has been called.
-
-
Method Detail
-
main
public static void main(String[] args)
Main application entry point.- Parameters:
args- application arguments.
-
create
public static org.glassfish.jersey.server.ResourceConfig create()
Create example application resource configuration.- Returns:
- initialized resource configuration of the example application.
-
-