com.caucho.quercus
Class ProResinQuercus

java.lang.Object
  extended by com.caucho.quercus.QuercusContext
      extended by com.caucho.quercus.ResinQuercus
          extended by com.caucho.quercus.ProResinQuercus
All Implemented Interfaces:
ProfileQuercus

public class ProResinQuercus
extends ResinQuercus
implements ProfileQuercus

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
ProResinQuercus()
           
 
Method Summary
 void checkLicense()
           
 Env createEnv(QuercusPage page, WriteStream out, HttpServletRequest request, HttpServletResponse response)
           
 ExprFactory createExprFactory()
           
protected  ModuleContext createModuleContext(ModuleContext parent, java.lang.ClassLoader loader)
          Creates the professional module context.
protected  PageManager createPageManager()
           
protected  QuercusSessionManager createSessionManager()
           
protected  void extendFunctionMap(java.lang.String name, int id)
           
 java.lang.ClassLoader getCompileClassLoader()
          Returns the compile classloader
 AbstractFunction[] getProfileFunctionMap()
          Returns the profiling functions
 int getProfileIndex(java.lang.String name)
           
 java.lang.String getProfileName(int index)
           
 boolean isPro()
          Returns true if this is the Professional version.
 boolean isProfile()
          Enables profiling mode
 void setCompileClassLoader(java.lang.ClassLoader loader)
          Sets the compile classloader
 void setProfileProbability(double probability)
          Set profiling mode
 
Methods inherited from class com.caucho.quercus.ResinQuercus
findDatabase, getConnection, getCookieName, getCurrentTime, getDependencyCheckInterval, getExactTime, getExactTimeNanoseconds, getLocalContext, getSessionCache, getSessionManager, getStatement, getVersion, getVersionDate, getWebApp, isResin, markForPoolRemoval, setSessionTimeout, setWebApp, start
 
Methods inherited from class com.caucho.quercus.QuercusContext
addImplClass, addJavaClass, addJavaClass, addLowerConstantId, addModule, addModuleInfo, clearDefinitionCache, close, completeEnv, createStaticName, createString, createUnicodeString, destroySession, findClass, findClassId, findFunction, findFunctionId, findFunctionImpl, findJavaClassWrapper, findLowerFunctionImpl, findModule, getActiveEnvSet, getCachedClass, getClassCacheMap, getClassDef, getClassDefMap, getClassId, getClassIdCount, getClassMap, getClassName, getClassName, 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, getPwd, getQuercusSessionManager, getRegexpCacheSize, getSapiName, getScriptEncoding, getServerEnv, getServerEnvMap, getServletContext, getSpecial, getStdClass, getWorkDir, includeExists, init, initLocal, isAllowUrlFopen, isAllowUrlInclude, isClosed, isCompile, isConnectionPool, isExtensionLoaded, isLooseParse, isRequireSource, isStrict, isSuperGlobal, isUnicodeSemantics, loadSession, objectToValue, parse, parse, parse, parseCode, parseEvalExpr, parseFunction, putIncludeCache, saveSession, setCachedClass, setCompile, setCompileFailover, setConnectionPool, setDatabase, setFunction, setIncludeCacheMax, setIncludeCacheTimeout, setIni, setIni, setIniFile, setLazyCompile, setLooseParse, setMysqlVersion, setPageCacheSize, setPhpVersion, 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

ProResinQuercus

public ProResinQuercus()
Method Detail

checkLicense

public void checkLicense()

isPro

public boolean isPro()
Returns true if this is the Professional version.

Overrides:
isPro in class QuercusContext

isProfile

public boolean isProfile()
Enables profiling mode

Specified by:
isProfile in interface ProfileQuercus
Overrides:
isProfile in class QuercusContext

setProfileProbability

public void setProfileProbability(double probability)
Set profiling mode

Specified by:
setProfileProbability in interface ProfileQuercus
Overrides:
setProfileProbability in class QuercusContext

getProfileIndex

public int getProfileIndex(java.lang.String name)
Specified by:
getProfileIndex in interface ProfileQuercus
Overrides:
getProfileIndex in class QuercusContext

getProfileName

public java.lang.String getProfileName(int index)
Specified by:
getProfileName in interface ProfileQuercus

createEnv

public Env createEnv(QuercusPage page,
                     WriteStream out,
                     HttpServletRequest request,
                     HttpServletResponse response)
Overrides:
createEnv in class QuercusContext

createModuleContext

protected ModuleContext createModuleContext(ModuleContext parent,
                                            java.lang.ClassLoader loader)
Creates the professional module context.

Overrides:
createModuleContext in class ResinQuercus

createPageManager

protected PageManager createPageManager()
Overrides:
createPageManager in class QuercusContext

createSessionManager

protected QuercusSessionManager createSessionManager()
Overrides:
createSessionManager in class QuercusContext

getCompileClassLoader

public java.lang.ClassLoader getCompileClassLoader()
Returns the compile classloader

Overrides:
getCompileClassLoader in class QuercusContext

setCompileClassLoader

public void setCompileClassLoader(java.lang.ClassLoader loader)
Sets the compile classloader

Overrides:
setCompileClassLoader in class QuercusContext

extendFunctionMap

protected void extendFunctionMap(java.lang.String name,
                                 int id)
Overrides:
extendFunctionMap in class QuercusContext

getProfileFunctionMap

public AbstractFunction[] getProfileFunctionMap()
Returns the profiling functions

Specified by:
getProfileFunctionMap in interface ProfileQuercus

createExprFactory

public ExprFactory createExprFactory()
Overrides:
createExprFactory in class QuercusContext