Class Jetty11HttpService
java.lang.Object
org.springframework.geode.cache.service.Jetty11HttpService
- All Implemented Interfaces:
org.apache.geode.cache.internal.HttpService
,org.apache.geode.internal.cache.CacheService
public class Jetty11HttpService
extends Object
implements org.apache.geode.cache.internal.HttpService
An Apache Geode
HttpService
implementation using Eclipse Jetty 11 HTTP server and Servlet container.- Since:
- 2.0.0
- See Also:
-
Cache
HttpService
DistributionConfig
InternalDistributedSystem
CacheService
SSLConfig
SecurableCommunicationChannel
HttpConfiguration
Server
WebAppContext
-
Nested Class Summary
Modifier and TypeClassDescriptionprotected static class
protected static class
protected static class
protected static class
protected static class
-
Field Summary
Fields inherited from interface org.apache.geode.cache.internal.HttpService
AUTH_TOKEN_ENABLED_PARAM, CLUSTER_MANAGEMENT_SERVICE_CONTEXT_PARAM, GEODE_SSLCONFIG_SERVLET_CONTEXT_PARAM, SECURITY_SERVICE_SERVLET_CONTEXT_PARAM
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds Web applications to Apache Geode's embedded HTTP service (HTTP server) making them available for service.void
close()
Stops Apache Geode's internal, embeddedHttpService
.Class<? extends org.apache.geode.internal.cache.CacheService>
protected org.slf4j.Logger
Return a reference to the configured SLF4JLogger
.org.apache.geode.management.internal.beans.CacheServiceMBeanBase
getMBean()
protected Optional<org.eclipse.jetty.server.Server>
Gets anOptional
reference to the configured and initialized Eclipse Jetty HTTP server and Servlet container.protected org.eclipse.jetty.server.Server
Gets a reference to the configured and initialized Eclipse Jetty HTTP server and Servlet container.protected List<org.eclipse.jetty.webapp.WebAppContext>
Gets a reference to theList
ofWeb applications
being run on this Jetty HTTP server.boolean
init
(org.apache.geode.cache.Cache cache) Initializes the internal, embedded Apache GeodeHttpService
by creating an instance of the Eclipse Jetty 11 HTTP server and Servlet container.
-
Constructor Details
-
Jetty11HttpService
public Jetty11HttpService()
-
-
Method Details
-
getInterface
- Specified by:
getInterface
in interfaceorg.apache.geode.internal.cache.CacheService
-
getLogger
protected org.slf4j.Logger getLogger()Return a reference to the configured SLF4JLogger
.- Returns:
- a reference to the configured SLF4J
Logger
. - See Also:
-
Logger
-
getMBean
public org.apache.geode.management.internal.beans.CacheServiceMBeanBase getMBean()- Specified by:
getMBean
in interfaceorg.apache.geode.internal.cache.CacheService
-
getServer
protected org.eclipse.jetty.server.Server getServer()Gets a reference to the configured and initialized Eclipse Jetty HTTP server and Servlet container.- Returns:
- a reference to the configured and initialized Eclipse Jetty HTTP server and Servlet container;
may be null if the
Server
has not yet been initialized. - See Also:
-
Server
getOptionalServer()
init(Cache)
-
getOptionalServer
Gets anOptional
reference to the configured and initialized Eclipse Jetty HTTP server and Servlet container.- Returns:
- an
Optional
reference to the configured and initialized Eclipse Jetty HTTP server and Servlet container. - See Also:
-
Server
Optional
getServer()
-
getWebApplications
Gets a reference to theList
ofWeb applications
being run on this Jetty HTTP server. -
init
public boolean init(org.apache.geode.cache.Cache cache) Initializes the internal, embedded Apache GeodeHttpService
by creating an instance of the Eclipse Jetty 11 HTTP server and Servlet container.- Specified by:
init
in interfaceorg.apache.geode.internal.cache.CacheService
- Parameters:
cache
- reference to the peerCache
instance in which this embeddedHttpService
will be running.- Returns:
- a boolean value indicating whether the Eclipse Jetty 11 based
HttpService
constructed, configured and initialized. - See Also:
-
Cache
-
addWebApplication
public void addWebApplication(String contextPath, Path warFilePath, Map<String, Object> attributeNameValuePairs) Adds Web applications to Apache Geode's embedded HTTP service (HTTP server) making them available for service.- Specified by:
addWebApplication
in interfaceorg.apache.geode.cache.internal.HttpService
- Parameters:
contextPath
-String
containing the Web application context path in which to bind the Web application.warFilePath
-Path
to the Java Web Application Archive (WAR) file.attributeNameValuePairs
-Map
of Web application,ServletContext
attributes to set in theWebAppContext
.- See Also:
-
WebAppContext
Server
getOptionalServer()
-
close
public void close()Stops Apache Geode's internal, embeddedHttpService
.- Specified by:
close
in interfaceorg.apache.geode.internal.cache.CacheService
-