public final class ConfigHelper extends Object
application configuration.| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_HTTP_PORT
Default port number for HTTP protocol.
|
static int |
DEFAULT_HTTPS_PORT
Default port number for HTTPS protocol.
|
| Modifier and Type | Method and Description |
|---|---|
static ContainerLifecycleListener |
getContainerLifecycleListener(ApplicationHandler applicationHandler)
Provides a single ContainerLifecycleListener instance based on the
application configuration. |
static Application |
getWrappedApplication(Application app)
Gets the most internal wrapped
application class. |
public static final int DEFAULT_HTTP_PORT
public static final int DEFAULT_HTTPS_PORT
public static ContainerLifecycleListener getContainerLifecycleListener(ApplicationHandler applicationHandler)
application configuration.
This method looks for providers implementing ContainerLifecycleListener interface and aggregates them into
a single umbrella listener instance that is returned.applicationHandler - actual application from where to get the listener.public static Application getWrappedApplication(Application app)
application class. This method is similar to
ResourceConfig.getApplication() except if provided application was created by wrapping multiple
ResourceConfig instances this method returns the original application and not a resource config wrapper.Application subclass.Copyright © 2007-2014, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.