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 Summary
Constructors Constructor Description ServletInitContext(javax.servlet.ServletContext servletContext)Creates a new servlet-based SPI initialisation context.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.infinispan.manager.EmbeddedCacheManagergetInfinispanCacheManager()Returns the Infinispan cache manager.InputStreamgetResourceAsStream(String path)Returns the resource located at the named path as an input stream.javax.servlet.ServletContextgetServletContext()Returns the servlet context.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.nimbusds.openid.connect.provider.spi.InitContext
getIssuer, getOPIssuer, getServiceContext, getTokenEndpointURI
-
-
-
-
Constructor Detail
-
ServletInitContext
public ServletInitContext(javax.servlet.ServletContext servletContext)
Creates a new servlet-based SPI initialisation context.- Parameters:
servletContext- The servlet context. Must not benull.
-
-
Method Detail
-
getServletContext
public javax.servlet.ServletContext getServletContext()
Returns the servlet context.- Specified by:
getServletContextin interfaceInitContext- Returns:
- The servlet context.
-
getResourceAsStream
public InputStream getResourceAsStream(String path)
Description copied from interface:InitContextReturns the resource located at the named path as an input stream. Has the same behaviour asServletContext.getResourceAsStream(java.lang.String).- Specified by:
getResourceAsStreamin interfaceInitContext- Parameters:
path- The path to the resource, must be begin with a '/' and is interpreted as relative to the web application root. Must not benull.- Returns:
- The resource as an input stream, or
nullif no resource exists at the specified path.
-
getInfinispanCacheManager
public org.infinispan.manager.EmbeddedCacheManager getInfinispanCacheManager()
Description copied from interface:InitContextReturns the Infinispan cache manager.- Specified by:
getInfinispanCacheManagerin interfaceInitContext- Returns:
- The Infinispan cache manager.
-
-