public abstract class ServletInitContext extends Object implements InitContext
Constructor and Description |
---|
ServletInitContext(javax.servlet.ServletContext servletContext)
Creates a new servlet-based SPI initialisation context.
|
Modifier and Type | Method and Description |
---|---|
org.infinispan.manager.EmbeddedCacheManager |
getInfinispanCacheManager()
Returns the Infinispan cache manager.
|
InputStream |
getResourceAsStream(String path)
Returns the resource located at the named path as an input stream.
|
javax.servlet.ServletContext |
getServletContext()
Returns the servlet context.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getIssuer, getOPIssuer, getServiceContext, getTokenEndpointURI
public ServletInitContext(javax.servlet.ServletContext servletContext)
servletContext
- The servlet context. Must not be null
.public javax.servlet.ServletContext getServletContext()
getServletContext
in interface InitContext
public InputStream getResourceAsStream(String path)
InitContext
ServletContext.getResourceAsStream(java.lang.String)
.getResourceAsStream
in interface InitContext
path
- The path to the resource, must be begin with a '/' and
is interpreted as relative to the web application root.
Must not be null
.null
if no
resource exists at the specified path.public org.infinispan.manager.EmbeddedCacheManager getInfinispanCacheManager()
InitContext
getInfinispanCacheManager
in interface InitContext
Copyright © 2021 Connect2id Ltd.. All rights reserved.