Class ServletInitContext

java.lang.Object
com.nimbusds.openid.connect.provider.spi.ServletInitContext
All Implemented Interfaces:
InitContext

public abstract class ServletInitContext extends Object implements InitContext
Servlet-based context for the initialisation of SPI implementations.
  • Constructor Details

    • ServletInitContext

      public ServletInitContext(jakarta.servlet.ServletContext servletContext)
      Creates a new servlet-based SPI initialisation context.
      Parameters:
      servletContext - The servlet context. Must not be null.
  • Method Details

    • getServletContext

      public jakarta.servlet.ServletContext getServletContext()
      Returns the servlet context.
      Specified by:
      getServletContext in interface InitContext
      Returns:
      The servlet context.
    • getResourceAsStream

      public @Nullable InputStream getResourceAsStream(String path)
      Description copied from interface: InitContext
      Returns the resource located at the named path as an input stream. Has the same behaviour as ServletContext.getResourceAsStream(java.lang.String).
      Specified by:
      getResourceAsStream in interface InitContext
      Parameters:
      path - The path to the resource, must begin with a '/' and is interpreted as relative to the web application root. Must not be null.
      Returns:
      The resource as an input stream, or null if no resource exists at the specified path.
    • getInfinispanCacheManager

      public org.infinispan.manager.EmbeddedCacheManager getInfinispanCacheManager()
      Description copied from interface: InitContext
      Returns the Infinispan cache manager.
      Specified by:
      getInfinispanCacheManager in interface InitContext
      Returns:
      The Infinispan cache manager.