Package org.glassfish.jersey.simple
Class SimpleContainer
java.lang.Object
org.glassfish.jersey.simple.SimpleContainer
- All Implemented Interfaces:
Container
,org.simpleframework.http.core.Container
public final class SimpleContainer
extends Object
implements org.simpleframework.http.core.Container, Container
Jersey
Container
implementation based on Simple framework
Container
.- Author:
- Arul Dhesiaseelan (aruld@acm.org), Marek Potociar
-
Field Summary
Fields inherited from interface org.glassfish.jersey.server.spi.Container
DEFAULT_HTTP_PORT, DEFAULT_HTTPS_PORT
-
Method Summary
Modifier and TypeMethodDescriptionGet the Jersey server-side application handler associated with the container.Return an immutable representation of the currentconfiguration
.void
handle
(org.simpleframework.http.Request request, org.simpleframework.http.Response response) void
reload()
Reload the hosted Jersey application using the currentconfiguration
.void
reload
(ResourceConfig configuration) Reload the hosted Jersey application using a newconfiguration
.
-
Method Details
-
handle
public void handle(org.simpleframework.http.Request request, org.simpleframework.http.Response response) - Specified by:
handle
in interfaceorg.simpleframework.http.core.Container
-
getConfiguration
Description copied from interface:Container
Return an immutable representation of the currentconfiguration
.- Specified by:
getConfiguration
in interfaceContainer
- Returns:
- current configuration of the hosted Jersey application.
-
reload
public void reload()Description copied from interface:Container
Reload the hosted Jersey application using the currentconfiguration
. -
reload
Description copied from interface:Container
Reload the hosted Jersey application using a newconfiguration
. -
getApplicationHandler
Description copied from interface:Container
Get the Jersey server-side application handler associated with the container.- Specified by:
getApplicationHandler
in interfaceContainer
- Returns:
- Jersey server-side application handler associated with the container.
-