com.caucho.quercus
Class ResinQuercus

java.lang.Object
  extended by com.caucho.quercus.QuercusContext
      extended by com.caucho.quercus.ResinQuercus
Direct Known Subclasses:
ProResinQuercus

public class ResinQuercus
extends QuercusContext

Facade for the PHP language.


Field Summary
 
Fields inherited from class com.caucho.quercus.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 Summary
ResinQuercus()
          Constructor.
 
Method Summary
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 getDependencyCheckInterval()
           
 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()
           
 
Methods inherited from class com.caucho.quercus.QuercusContext
addImplClass, addJavaClass, addJavaClass, addLowerConstantId, addModule, addModuleInfo, clearDefinitionCache, close, completeEnv, createEnv, createExprFactory, createPageManager, createSessionManager, createStaticName, createString, createUnicodeString, destroySession, extendFunctionMap, 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, getExtensionFuncs, getFunctionId, getFunctionIdCount, getFunctionMap, getIncludeCache, getIncludeCacheMax, getIncludeCacheTimeout, getIniBoolean, getIniDefinitions, getIniFile, getIniLong, getIniMap, getIniValue, getJavaClassDefinition, getJavaClassDefinition, getLoadedExtensions, getLocalContext, getModuleContext, getModules, getModuleStartupListeners, getMysqlVersion, getPageCacheSize, getPhpVersion, getPhpVersionValue, getProfileIndex, getPwd, getQuercusSessionManager, getRegexpCacheSize, getSapiName, getScriptEncoding, getServerEnv, getServerEnvMap, getServletContext, getSpecial, getStdClass, getWorkDir, includeExists, init, initLocal, isAllowUrlFopen, isAllowUrlInclude, isClosed, isCompile, isConnectionPool, isExtensionLoaded, isLooseParse, isPro, isProfile, isRequireSource, isStrict, isSuperGlobal, isUnicodeSemantics, loadSession, objectToValue, parse, parse, parse, parseCode, parseEvalExpr, parseFunction, putIncludeCache, saveSession, setCachedClass, setCompile, setCompileClassLoader, setCompileFailover, setConnectionPool, setDatabase, setFunction, setIncludeCacheMax, setIncludeCacheTimeout, setIni, setIni, setIniFile, setLazyCompile, setLooseParse, setMysqlVersion, setPageCacheSize, setPhpVersion, setProfileProbability, setPwd, setRegexpCacheSize, setRequireSource, setScriptEncoding, setServerEnv, setServerEnv, setServletContext, setSpecial, setStrict, setUnicodeSemantics, setWorkDir, startEnv
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResinQuercus

public ResinQuercus()
Constructor.

Method Detail

setWebApp

public void setWebApp(WebApp webApp)

getWebApp

public WebApp getWebApp()

getCurrentTime

public long getCurrentTime()
Returns the current time.

Overrides:
getCurrentTime in class QuercusContext

getExactTimeNanoseconds

public long getExactTimeNanoseconds()
Returns the current time in nanoseconds.

Overrides:
getExactTimeNanoseconds in class QuercusContext

getExactTime

public long getExactTime()
Returns the exact current time in milliseconds.

Overrides:
getExactTime in class QuercusContext

getLocalContext

public ModuleContext getLocalContext(java.lang.ClassLoader loader)
Overrides:
getLocalContext in class QuercusContext

createModuleContext

protected ModuleContext createModuleContext(ModuleContext parent,
                                            java.lang.ClassLoader loader)
Overrides:
createModuleContext in class QuercusContext

getCookieName

public java.lang.String getCookieName()
Overrides:
getCookieName in class QuercusContext

getSessionCache

public Cache getSessionCache()
Overrides:
getSessionCache in class QuercusContext

setSessionTimeout

public void setSessionTimeout(long sessionTimeout)
Overrides:
setSessionTimeout in class QuercusContext

getSessionManager

public SessionManager getSessionManager()

getDependencyCheckInterval

public long getDependencyCheckInterval()
Overrides:
getDependencyCheckInterval in class QuercusContext

getVersion

public java.lang.String getVersion()
Overrides:
getVersion in class QuercusContext

getVersionDate

public java.lang.String getVersionDate()
Overrides:
getVersionDate in class QuercusContext

findDatabase

public javax.sql.DataSource findDatabase(java.lang.String driver,
                                         java.lang.String url)
Description copied from class: QuercusContext
Gets the default data source.

Overrides:
findDatabase in class QuercusContext

getConnection

public java.sql.Connection getConnection(java.sql.Connection conn)
Unwrap connection if necessary.

Overrides:
getConnection in class QuercusContext

markForPoolRemoval

public void markForPoolRemoval(java.sql.Connection conn)
Marks the connection for removal from the connection pool.

Overrides:
markForPoolRemoval in class QuercusContext

getStatement

public java.sql.Statement getStatement(java.sql.Statement stmt)
Unwrap statement if necessary.

Overrides:
getStatement in class QuercusContext

isResin

public boolean isResin()
Returns true if Quercus is running under Resin.

Overrides:
isResin in class QuercusContext

start

public void start()
Overrides:
start in class QuercusContext