public class ResinQuercus extends QuercusContext
_envTimeout, _functionNameMap, ENV_TIMEOUT_UPDATE_INTERVAL, INI_ALWAYS_POPULATE_RAW_POST_DATA, INI_INCLUDE_PATH, INI_REGISTER_LONG_ARRAYS, INI_UNICODE_FALLBACK_ENCODING, INI_UNICODE_FROM_ERROR_MODE, INI_UNICODE_FROM_ERROR_SUBST_CHAR, INI_UNICODE_HTTP_INPUT_ENCODING, INI_UNICODE_OUTPUT_ENCODING, INI_UNICODE_RUNTIME_ENCODING, INI_UNICODE_SCRIPT_ENCODING, INI_UNICODE_SEMANTICS
Constructor and Description |
---|
ResinQuercus()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected ModuleContext |
createModuleContext(ModuleContext parent,
java.lang.ClassLoader loader) |
javax.sql.DataSource |
findDatabase(java.lang.String driver,
java.lang.String url)
Gets the default data source.
|
java.sql.Connection |
getConnection(java.sql.Connection conn)
Unwrap connection if necessary.
|
java.lang.String |
getCookieName() |
long |
getCurrentTime()
Returns the current time.
|
long |
getExactTime()
Returns the exact current time in milliseconds.
|
long |
getExactTimeNanoseconds()
Returns the current time in nanoseconds.
|
ModuleContext |
getLocalContext(java.lang.ClassLoader loader) |
Cache |
getSessionCache() |
SessionManager |
getSessionManager() |
java.sql.Statement |
getStatement(java.sql.Statement stmt)
Unwrap statement if necessary.
|
java.lang.String |
getVersion() |
java.lang.String |
getVersionDate() |
WebApp |
getWebApp() |
boolean |
isResin()
Returns true if Quercus is running under Resin.
|
void |
markForPoolRemoval(java.sql.Connection conn)
Marks the connection for removal from the connection pool.
|
void |
setSessionTimeout(long sessionTimeout) |
void |
setWebApp(WebApp webApp) |
void |
start() |
addImplClass, addInitModule, addJavaClass, addJavaClass, addLowerConstantId, clearDefinitionCache, close, completeEnv, createEnv, createExprFactory, createPageManager, createSessionManager, createStaticName, createString, createUnicodeString, destroySession, extendFunctionMap, finalize, findClass, findClassId, findFunction, findFunctionId, findFunctionImpl, findJavaClassWrapper, findLowerFunctionImpl, findModule, getActiveEnvSet, getCachedClass, getClassCacheMap, getClassDef, getClassDefMap, getClassId, getClassIdCount, getClassMap, getClassName, getClassName, getCompileClassLoader, getConstant, getConstantId, getConstantId, getConstantIdCount, getConstantLower, getConstantLowerId, getConstantMap, getConstantName, getDatabase, getDefCacheHitCount, getDefCacheMissCount, getDefinedFunctions, getDependencyCheckInterval, getExtensionFuncs, getFunctionId, getFunctionIdCount, getFunctionMap, getIncludeCache, getIncludeCacheMax, getIncludeCacheTimeout, getIniBoolean, getIniDefinitions, getIniFile, getIniLong, getIniMap, getIniString, getIniValue, getJavaClassDefinition, getJavaClassDefinition, getJdbcDriverContext, getLoadedExtensions, getLocalContext, getModuleContext, getModules, getModuleStartupListeners, getMysqlVersion, getName, getOutputEncoding, getPageCacheSize, getPhpVersion, getProfileIndex, getPwd, getQuercusSessionManager, getRegexpCacheSize, getSapiName, getScriptEncoding, getServerEnv, getServerEnvMap, getServletContext, getSpecial, getStdClass, getWebInfDir, getWorkDir, includeExists, init, initLocal, isAllowUrlFopen, isAllowUrlInclude, isClosed, isCompile, isConnectionPool, isExtensionLoaded, isLooseParse, isPro, isProfile, isRegisterArgv, isRequireSource, isStrict, isSuperGlobal, isUnicodeSemantics, loadSession, objectToValue, parse, parse, parse, parseCode, parseEvalExpr, parseFunction, putIncludeCache, saveSession, setCachedClass, setCompile, setCompileClassLoader, setCompileFailover, setConnectionPool, setDatabase, setDependencyCheckInterval, setFunction, setIncludeCacheMax, setIncludeCacheTimeout, setIni, setIni, setIniFile, setLazyCompile, setLooseParse, setMysqlVersion, setPageCacheSize, setPhpVersion, setProfileProbability, setPwd, setRegexpCacheSize, setRequireSource, setScriptEncoding, setServerEnv, setServerEnv, setServletContext, setSpecial, setStrict, setUnicodeSemantics, setWebInfDir, setWorkDir, startEnv
public void setWebApp(WebApp webApp)
public WebApp getWebApp()
public long getCurrentTime()
getCurrentTime
in class QuercusContext
public long getExactTimeNanoseconds()
getExactTimeNanoseconds
in class QuercusContext
public long getExactTime()
getExactTime
in class QuercusContext
public ModuleContext getLocalContext(java.lang.ClassLoader loader)
getLocalContext
in class QuercusContext
protected ModuleContext createModuleContext(ModuleContext parent, java.lang.ClassLoader loader)
createModuleContext
in class QuercusContext
public java.lang.String getCookieName()
getCookieName
in class QuercusContext
public Cache getSessionCache()
getSessionCache
in class QuercusContext
public void setSessionTimeout(long sessionTimeout)
setSessionTimeout
in class QuercusContext
public SessionManager getSessionManager()
public java.lang.String getVersion()
getVersion
in class QuercusContext
public java.lang.String getVersionDate()
getVersionDate
in class QuercusContext
public javax.sql.DataSource findDatabase(java.lang.String driver, java.lang.String url)
QuercusContext
findDatabase
in class QuercusContext
public java.sql.Connection getConnection(java.sql.Connection conn)
getConnection
in class QuercusContext
public void markForPoolRemoval(java.sql.Connection conn)
markForPoolRemoval
in class QuercusContext
public java.sql.Statement getStatement(java.sql.Statement stmt)
getStatement
in class QuercusContext
public boolean isResin()
isResin
in class QuercusContext
public void start()
start
in class QuercusContext