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

    Nested Classes
    Modifier and Type
    Class
    Description
    protected 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

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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.
    void
    Stops Apache Geode's internal, embedded HttpService.
    Class<? extends org.apache.geode.internal.cache.CacheService>
     
    protected org.slf4j.Logger
    Return a reference to the configured SLF4J Logger.
    org.apache.geode.management.internal.beans.CacheServiceMBeanBase
     
    protected Optional<org.eclipse.jetty.server.Server>
    Gets an Optional 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 the List of Web applications being run on this Jetty HTTP server.
    boolean
    init(org.apache.geode.cache.Cache cache)
    Initializes the internal, embedded Apache Geode HttpService by creating an instance of the Eclipse Jetty 11 HTTP server and Servlet container.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Jetty11HttpService

      public Jetty11HttpService()
  • Method Details

    • getInterface

      public Class<? extends org.apache.geode.internal.cache.CacheService> getInterface()
      Specified by:
      getInterface in interface org.apache.geode.internal.cache.CacheService
    • getLogger

      protected org.slf4j.Logger getLogger()
      Return a reference to the configured SLF4J Logger.
      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 interface org.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:
    • getOptionalServer

      protected Optional<org.eclipse.jetty.server.Server> getOptionalServer()
      Gets an Optional 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:
    • getWebApplications

      protected List<org.eclipse.jetty.webapp.WebAppContext> getWebApplications()
      Gets a reference to the List of Web applications being run on this Jetty HTTP server.
      Returns:
      a reference to the List of Web applications being run on this Jetty HTTP server.
      See Also:
      • WebAppContext
      • List
    • init

      public boolean init(org.apache.geode.cache.Cache cache)
      Initializes the internal, embedded Apache Geode HttpService by creating an instance of the Eclipse Jetty 11 HTTP server and Servlet container.
      Specified by:
      init in interface org.apache.geode.internal.cache.CacheService
      Parameters:
      cache - reference to the peer Cache instance in which this embedded HttpService 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 interface org.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 the WebAppContext.
      See Also:
    • close

      public void close()
      Stops Apache Geode's internal, embedded HttpService.
      Specified by:
      close in interface org.apache.geode.internal.cache.CacheService