public class App extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
API_PATH |
static String |
APP_PATH |
static int |
PORT |
static String |
WEB_ROOT |
| Constructor and Description |
|---|
App() |
| Modifier and Type | Method and Description |
|---|---|
static org.glassfish.jersey.server.ResourceConfig |
createResourceConfig()
Create Jersey server-side application resource configuration.
|
static String |
getApiUri() |
static String |
getAppUri() |
static String |
getTwitterUserName()
Get configured twitter user name.
|
static String |
getTwitterUserPassword()
Get configured twitter user password.
|
static void |
main(String[] args) |
static org.glassfish.grizzly.http.server.HttpServer |
startServer(String webRootPath)
Starts Grizzly HTTP server exposing static content, JAX-RS resources
and web sockets defined in this application.
|
public static final String APP_PATH
public static final String API_PATH
public static final String WEB_ROOT
public static final int PORT
public static org.glassfish.grizzly.http.server.HttpServer startServer(String webRootPath)
webRootPath - static content root path.public static void main(String[] args)
public static String getApiUri()
public static String getAppUri()
public static org.glassfish.jersey.server.ResourceConfig createResourceConfig()
public static String getTwitterUserName()
public static String getTwitterUserPassword()
Copyright © 2007-2014, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.