Class App
java.lang.Object
org.glassfish.jersey.examples.helloworld.App
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
FieldsModifier and TypeFieldDescriptionstatic booleanTest assertion indicator that a GET method handler has been called.static booleanTest assertion indicator that a HEAD method handler has been called.static final String"Hello World" root resource path. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ResourceConfigcreate()Create example application resource configuration.static voidMain application entry point.
-
Field Details
-
ROOT_PATH
"Hello World" root resource path.- See Also:
-
getMethodCalled
public static volatile boolean getMethodCalledTest assertion indicator that a GET method handler has been called. -
headMethodCalled
public static volatile boolean headMethodCalledTest assertion indicator that a HEAD method handler has been called.
-
-
Constructor Details
-
App
public App()
-
-
Method Details
-
main
Main application entry point.- Parameters:
args- application arguments.
-
create
Create example application resource configuration.- Returns:
- initialized resource configuration of the example application.
-