org.glassfish.jersey.examples.helloworld
Class App

java.lang.Object
  extended by org.glassfish.jersey.examples.helloworld.App

public class App
extends java.lang.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 (marek.potociar at oracle.com)

Field Summary
static boolean getMethodCalled
          Test assertion indicator that a GET method handler has been called.
static boolean headMethodCalled
          Test assertion indicator that a HEAD method handler has been called.
static java.lang.String ROOT_PATH
          "Hello World" root resource path.
 
Constructor Summary
App()
           
 
Method Summary
static ResourceConfig create()
          Create example application resource configuration.
static void main(java.lang.String[] args)
          Main application entry point.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ROOT_PATH

public static final java.lang.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.

Constructor Detail

App

public App()
Method Detail

main

public static void main(java.lang.String[] args)
Main application entry point.

Parameters:
args - application arguments.

create

public static ResourceConfig create()
Create example application resource configuration.

Returns:
initialized resource configuration of the example application.


Copyright © 2007-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.