Spring Boot for VMware GemFire
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:
-
CacheHttpServiceDistributionConfigInternalDistributedSystemCacheServiceSSLConfigSecurableCommunicationChannelHttpConfigurationServerWebAppContext
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classprotected static classprotected static classprotected static classprotected 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds Web applications to Apache Geode's embedded HTTP service (HTTP server) making them available for service.voidclose()Stops Apache Geode's internal, embeddedHttpService.Class<? extends org.apache.geode.internal.cache.CacheService>protected org.slf4j.LoggerReturn a reference to the configured SLF4JLogger.org.apache.geode.management.internal.beans.CacheServiceMBeanBasegetMBean()protected Optional<org.eclipse.jetty.server.Server>Gets anOptionalreference to the configured and initialized Eclipse Jetty HTTP server and Servlet container.protected org.eclipse.jetty.server.ServerGets 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 theListofWeb applicationsbeing run on this Jetty HTTP server.booleaninit(org.apache.geode.cache.Cache cache) Initializes the internal, embedded Apache GeodeHttpServiceby creating an instance of the Eclipse Jetty 11 HTTP server and Servlet container.
-
Constructor Details
-
Jetty11HttpService
public Jetty11HttpService()
-
-
Method Details
-
getInterface
- Specified by:
getInterfacein 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:
getMBeanin 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
Serverhas not yet been initialized. - See Also:
-
ServergetOptionalServer()init(Cache)
-
getOptionalServer
Gets anOptionalreference to the configured and initialized Eclipse Jetty HTTP server and Servlet container.- Returns:
- an
Optionalreference to the configured and initialized Eclipse Jetty HTTP server and Servlet container. - See Also:
-
ServerOptionalgetServer()
-
getWebApplications
Gets a reference to theListofWeb applicationsbeing run on this Jetty HTTP server. -
init
public boolean init(org.apache.geode.cache.Cache cache) Initializes the internal, embedded Apache GeodeHttpServiceby creating an instance of the Eclipse Jetty 11 HTTP server and Servlet container.- Specified by:
initin interfaceorg.apache.geode.internal.cache.CacheService- Parameters:
cache- reference to the peerCacheinstance in which this embeddedHttpServicewill be running.- Returns:
- a boolean value indicating whether the Eclipse Jetty 11 based
HttpServiceconstructed, 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:
addWebApplicationin interfaceorg.apache.geode.cache.internal.HttpService- Parameters:
contextPath-Stringcontaining the Web application context path in which to bind the Web application.warFilePath-Pathto the Java Web Application Archive (WAR) file.attributeNameValuePairs-Mapof Web application,ServletContextattributes to set in theWebAppContext.- See Also:
-
WebAppContextServergetOptionalServer()
-
close
public void close()Stops Apache Geode's internal, embeddedHttpService.- Specified by:
closein interfaceorg.apache.geode.internal.cache.CacheService
-