Class GrizzlyHttpContainer
java.lang.Object
org.glassfish.grizzly.http.server.HttpHandler
org.glassfish.jersey.grizzly2.httpserver.GrizzlyHttpContainer
- All Implemented Interfaces:
Container
public final class GrizzlyHttpContainer
extends org.glassfish.grizzly.http.server.HttpHandler
implements Container
Jersey
Container
implementation based on Grizzly HttpHandler
.- Author:
- Jakub Podlesak, Libor Kramolis, Marek Potociar
-
Field Summary
Fields inherited from interface org.glassfish.jersey.server.spi.Container
DEFAULT_HTTP_PORT, DEFAULT_HTTPS_PORT
-
Method Summary
Modifier and TypeMethodDescriptionvoid
destroy()
Get the Jersey server-side application handler associated with the container.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
.void
service
(org.glassfish.grizzly.http.server.Request request, org.glassfish.grizzly.http.server.Response response) void
start()
Methods inherited from class org.glassfish.grizzly.http.server.HttpHandler
getErrorPageGenerator, getName, getRequestExecutorProvider, getRequestURIEncoding, getSessionCookieName, getSessionManager, isAllowCustomStatusMessage, isAllowEncodedSlash, sendAcknowledgment, setAllowCustomStatusMessage, setAllowEncodedSlash, setDecodeUrl, setDispatcherHelper, setRequestURIEncoding, setRequestURIEncoding, updatePaths
-
Method Details
-
start
public void start()- Overrides:
start
in classorg.glassfish.grizzly.http.server.HttpHandler
-
service
public void service(org.glassfish.grizzly.http.server.Request request, org.glassfish.grizzly.http.server.Response response) - Specified by:
service
in classorg.glassfish.grizzly.http.server.HttpHandler
-
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.
-
destroy
public void destroy()- Overrides:
destroy
in classorg.glassfish.grizzly.http.server.HttpHandler
-