public class BigdataRDFServletContextListener extends Object implements javax.servlet.ServletContextListener
IIndexManager
by
interpreting the configuration parameters in the ServletContext
.Modifier and Type | Field and Description |
---|---|
static String |
INIT_PARAM_OVERRIDES
The name of the
ServletContext attribute under which we store
any overrides for the init parameters of the ServletContext . |
Constructor and Description |
---|
BigdataRDFServletContextListener() |
Modifier and Type | Method and Description |
---|---|
void |
contextDestroyed(javax.servlet.ServletContextEvent e) |
void |
contextInitialized(javax.servlet.ServletContextEvent e) |
protected BigdataRDFContext |
getBigdataRDFContext() |
protected String |
getInitParameter(String key)
Return the effective value of the given init parameter, respecting any
overrides that were specified to the
NanoSparqlServer when it
initialized the server. |
public static final String INIT_PARAM_OVERRIDES
ServletContext
attribute under which we store
any overrides for the init parameters of the ServletContext
. Note
that it is NOT possible to actual modify the init parameters specified in
the web.xml
file. Therefore, we attach the overrides as an
attribute and then consult them from within
contextInitialized(javax.servlet.ServletContextEvent)
.protected String getInitParameter(String key)
NanoSparqlServer
when it
initialized the server.key
- The name of the desired init parameter.protected BigdataRDFContext getBigdataRDFContext()
public void contextInitialized(javax.servlet.ServletContextEvent e)
contextInitialized
in interface javax.servlet.ServletContextListener
public void contextDestroyed(javax.servlet.ServletContextEvent e)
contextDestroyed
in interface javax.servlet.ServletContextListener
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.