Package org.glassfish.jersey.server.spi
Interface Container
- All Known Implementing Classes:
GrizzlyHttpContainer,JdkHttpHandlerContainer,ServletContainer,SimpleContainer
Jersey container service contract.
The purpose of the container is to configure and host a single Jersey
application.
- Author:
- Marek Potociar
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intDefault container port number for HTTP protocol.static final intDefault container port number for HTTPS protocol. -
Method Summary
Modifier and TypeMethodDescriptionGet the Jersey server-side application handler associated with the container.Return an immutable representation of the currentconfiguration.voidreload()Reload the hosted Jersey application using the currentconfiguration.voidreload(ResourceConfig configuration) Reload the hosted Jersey application using a newconfiguration.
-
Field Details
-
DEFAULT_HTTP_PORT
static final int DEFAULT_HTTP_PORTDefault container port number for HTTP protocol.- Since:
- 2.18
- See Also:
-
DEFAULT_HTTPS_PORT
static final int DEFAULT_HTTPS_PORTDefault container port number for HTTPS protocol.- Since:
- 2.18
- See Also:
-
-
Method Details
-
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
Reload the hosted Jersey application using a newconfiguration.- Parameters:
configuration- new configuration used for the reload.
-