Package org.glassfish.jersey.server.spi
Interface Container
-
- All Known Implementing Classes:
JdkHttpHandlerContainer
,JettyHttpContainer
,ServletContainer
,SimpleContainer
@Contract @ConstrainedTo(SERVER) public interface Container
Jersey container service contract. The purpose of the container is to configure and host a single Jersey application.- See Also:
ApplicationHandler
-
-
Field Summary
Fields Modifier and Type Field Description static int
DEFAULT_HTTP_PORT
Default container port number for HTTP protocol.static int
DEFAULT_HTTPS_PORT
Default container port number for HTTPS protocol.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ApplicationHandler
getApplicationHandler()
Get the Jersey server-side application handler associated with the container.ResourceConfig
getConfiguration()
Return an immutable representation of the currentconfiguration
.void
reload()
Reload the hosted Jersey application using the currentconfiguration
.void
reload(ResourceConfig configuration)
Reload the hosted Jersey application using a newconfiguration
.
-
-
-
Field Detail
-
DEFAULT_HTTP_PORT
static final int DEFAULT_HTTP_PORT
Default container port number for HTTP protocol.- Since:
- 2.18
- See Also:
- Constant Field Values
-
DEFAULT_HTTPS_PORT
static final int DEFAULT_HTTPS_PORT
Default container port number for HTTPS protocol.- Since:
- 2.18
- See Also:
- Constant Field Values
-
-
Method Detail
-
getConfiguration
ResourceConfig getConfiguration()
Return an immutable representation of the currentconfiguration
.- Returns:
- current configuration of the hosted Jersey application.
-
getApplicationHandler
ApplicationHandler getApplicationHandler()
Get the Jersey server-side application handler associated with the container.- Returns:
- Jersey server-side application handler associated with the container.
-
reload
void reload()
Reload the hosted Jersey application using the currentconfiguration
.
-
reload
void reload(ResourceConfig configuration)
Reload the hosted Jersey application using a newconfiguration
.- Parameters:
configuration
- new configuration used for the reload.
-
-