Java Doc for Quercus.java in  » EJB-Server-resin-3.1.5 » quercus » com » caucho » quercus » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » EJB Server resin 3.1.5 » quercus » com.caucho.quercus 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.caucho.quercus.Quercus

Quercus
public class Quercus (Code)
Facade for the PHP language.

Inner Class :static class IncludeKey

Field Summary
final public static  IniDefinitionINI_INCLUDE_PATH
    
final public static  IniDefinitionINI_REGISTER_LONG_ARRAYS
    
final public static  IniDefinitionINI_UNICODE_FALLBACK_ENCODING
    
final public static  IniDefinitionINI_UNICODE_FROM_ERROR_MODE
    
final public static  IniDefinitionINI_UNICODE_FROM_ERROR_SUBST_CHAR
    
final public static  IniDefinitionINI_UNICODE_HTTP_INPUT_ENCODING
    
final public static  IniDefinitionINI_UNICODE_OUTPUT_ENCODING
    
final public static  IniDefinitionINI_UNICODE_RUNTIME_ENCODING
    
final public static  IniDefinitionINI_UNICODE_SCRIPT_ENCODING
    
final public static  IniDefinitionINI_UNICODE_SEMANTICS
    

Constructor Summary
public  Quercus()
     Constructor.

Method Summary
public  voidaddImplClass(String name, Class type)
    
public  voidaddJavaClass(String name, Class type)
    
public  voidaddJavaClass(String phpName, String className)
    
protected  voidaddJavaClassWrapper(String className, JavaClassDef def)
    
public  voidaddModule(QuercusModule module)
    
public  voidclearDefinitionCache()
     Clears the definition cache.
public  voidclose()
    
public  EnvcreateEnv(QuercusPage page, WriteStream out, HttpServletRequest request, HttpServletResponse response)
    
protected  ModuleContextcreateModuleContext(ClassLoader loader)
    
protected  PageManagercreatePageManager()
    
protected  QuercusSessionManagercreateSessionManager()
    
public  StringcreateStaticName()
    
public  StringValuecreateString(String v)
    
public  voiddestroySession(String sessionId)
     Removes the session from the backing.
public static  ValueexnConstructor(Env env, Value obj, String msg)
    
public  ClassDeffindClass(String name)
     Returns the class with the given name.
public  intfindClassId(String name)
     Returns the id for a function name.
public  DataSourcefindDatabase(String driver, String url)
     Gets the default data source.
public  AbstractFunctionfindFunction(String name)
     Returns the function with the given name.
public  intfindFunctionId(String name)
     Returns the id for a function name.
public  AbstractFunctionfindFunctionImpl(String name)
     Returns the function with the given name.
public  ClassDeffindJavaClassWrapper(String name)
     Finds the java class wrapper.
public  AbstractFunctionfindLowerFunctionImpl(String lowerName)
     Returns the function with the given name.
public  QuercusModulefindModule(String name)
     Returns the module with the given name.
public  ClassDef[]getClassDefMap()
    
public  intgetClassId(String name)
     Returns the id for a class name.
public  intgetClassIdCount()
    
public  HashMap<String, ClassDef>getClassMap()
     Returns the class maps.
public  ConnectiongetConnection(Connection conn)
     Unwrap connection if necessary.
public  HashMap<String, Value>getConstMap()
    
public  ValuegetConstant(String name)
     Returns a named constant.
public  intgetConstantId(String name)
    
public  intgetConstantIdSize()
    
public  StringgetCookieName()
    
public  DataSourcegetDatabase()
     Gets the default data source.
public  longgetDefCacheHitCount()
     Returns the definition cache hit count.
public  longgetDefCacheMissCount()
     Returns the definition cache miss count.
public  ArrayValuegetDefinedFunctions()
     Returns an array of the defined functions.
public  ValuegetExtensionFuncs(String name)
     Returns true if an extension is loaded.
public  intgetFunctionId(String name)
     Returns the id for a function name.
public  intgetFunctionIdCount()
    
public  AbstractFunction[]getFunctionMap()
    
public  PathgetIncludeCache(String include, String includePath, Path pwd, Path scriptPwd)
     Returns an include path.
public  booleangetIniBoolean(String name)
     Returns an ini value.
public  IniDefinitionsgetIniDefinitions()
     Returns the IniDefinitions for all ini that have been defined by modules.
public  longgetIniLong(String name)
     Returns an ini value as a long.
public  IdentityHashMap<String, Value>getIniMap(boolean create)
     Returns a map of the ini values that have been explicitly set.
public  JavaClassDefgetJavaClassDefinition(Class type, String className)
    
public  JavaClassDefgetJavaClassDefinition(String className)
    
public  HashSet<String>getLoadedExtensions()
     Returns true if an extension is loaded.
final public  ModuleContextgetLocalContext()
     Returns the context for this class loader.
public  ModuleContextgetLocalContext(ClassLoader loader)
    
public  ModuleContextgetModuleContext()
     Returns the module context.
public  HashSet<ModuleStartupListener>getModuleStartupListeners()
     Returns a list of the modules that have some startup code to run.
public  Collection<ModuleInfo>getModules()
    
public  StringgetMysqlVersion()
    
public  StringgetPhpVersion()
    
public  PathgetPwd()
     Returns the working directory.
public  QuercusSessionManagergetQuercusSessionManager()
    
public  StringgetScriptEncoding()
    
public  ValuegetServerEnv(StringValue name)
     Gets a server env value.
public  HashMap<Value, Value>getServerEnvMap()
     Returns the server env map.
public  ServletContextgetServletContext()
    
public  ObjectgetSpecial(String key)
    
public  java.sql.StatementgetStatement(java.sql.Statement stmt)
     Unwrap statement if necessary.
public  QuercusClassgetStdClass()
     Returns the stdClass definition.
public  StringgetVersion()
    
public  StringgetVersionDate()
    
public  PathgetWorkDir()
    
public  StringValueintern(String name)
     Interns a string.
public  booleanisCompile()
     true if the pages should be compiled.
public  booleanisExtensionLoaded(String name)
     Returns true if an extension is loaded.
public  booleanisPro()
    
public  booleanisRequireSource()
    
public  booleanisResin()
    
public  booleanisStrict()
     Gets the strict mode.
public static  booleanisSuperGlobal(String name)
     Returns true if the variable is a superglobal.
public  booleanisUnicodeSemantics()
     Returns true if unicode.semantics is on.
public  SessionArrayValueloadSession(Env env, String sessionId)
     Loads the session from the backing.
public  voidmarkForPoolRemoval(Connection conn)
    
public static  ValueobjectToValue(Object obj)
    
public  QuercusPageparse(Path path)
     Parses a quercus program.
public  QuercusPageparse(Path path, String fileName, int line)
     Parses a quercus program.
public  QuercusPageparse(ReadStream is)
     Parses a quercus program.
public  QuercusProgramparseCode(String code)
     Parses a quercus string.
public  QuercusProgramparseEvalExpr(String code)
     Parses a quercus string.
public  ValueparseFunction(String args, String code)
     Parses a function.
public  voidputIncludeCache(String include, String includePath, Path pwd, Path scriptPwd, Path path)
     Adds an include path.
public  voidsaveSession(Env env, SessionArrayValue session)
     Saves the session to the backing.
public  voidsetCompile(boolean isCompile)
     Set true if pages should be compiled.
public  voidsetDatabase(DataSource database)
     Sets the default data source.
public  voidsetIni(String name, StringValue value)
     Sets an ini value.
public  voidsetIni(String name, String value)
     Sets an ini value.
public  voidsetIniFile(Path path)
     Sets an ini file.
public  voidsetLazyCompile(boolean isCompile)
     Set true if pages should be compiled.
public  voidsetMysqlVersion(String version)
    
public  voidsetPhpVersion(String version)
    
public  voidsetPwd(Path path)
     Sets the working directory.
public  voidsetRequireSource(boolean isRequireSource)
    
public  voidsetScriptEncoding(String encoding)
    
public  voidsetServerEnv(String name, String value)
     Sets a server env value.
public  voidsetServerEnv(StringValue name, StringValue value)
     Sets a server env value.
public  voidsetServletContext(ServletContext servletContext)
    
public  voidsetSpecial(String key, Object value)
    
public  voidsetStrict(boolean isStrict)
     Sets the strict mode.
public  voidsetWorkDir(Path workDir)
    

Field Detail
INI_INCLUDE_PATH
final public static IniDefinition INI_INCLUDE_PATH(Code)



INI_REGISTER_LONG_ARRAYS
final public static IniDefinition INI_REGISTER_LONG_ARRAYS(Code)



INI_UNICODE_FALLBACK_ENCODING
final public static IniDefinition INI_UNICODE_FALLBACK_ENCODING(Code)



INI_UNICODE_FROM_ERROR_MODE
final public static IniDefinition INI_UNICODE_FROM_ERROR_MODE(Code)



INI_UNICODE_FROM_ERROR_SUBST_CHAR
final public static IniDefinition INI_UNICODE_FROM_ERROR_SUBST_CHAR(Code)



INI_UNICODE_HTTP_INPUT_ENCODING
final public static IniDefinition INI_UNICODE_HTTP_INPUT_ENCODING(Code)



INI_UNICODE_OUTPUT_ENCODING
final public static IniDefinition INI_UNICODE_OUTPUT_ENCODING(Code)



INI_UNICODE_RUNTIME_ENCODING
final public static IniDefinition INI_UNICODE_RUNTIME_ENCODING(Code)



INI_UNICODE_SCRIPT_ENCODING
final public static IniDefinition INI_UNICODE_SCRIPT_ENCODING(Code)



INI_UNICODE_SEMANTICS
final public static IniDefinition INI_UNICODE_SEMANTICS(Code)




Constructor Detail
Quercus
public Quercus()(Code)
Constructor.




Method Detail
addImplClass
public void addImplClass(String name, Class type) throws ConfigException(Code)
Adds a impl class



addJavaClass
public void addJavaClass(String name, Class type) throws ConfigException(Code)
Adds a java class



addJavaClass
public void addJavaClass(String phpName, String className)(Code)
Adds a java class



addJavaClassWrapper
protected void addJavaClassWrapper(String className, JavaClassDef def)(Code)



addModule
public void addModule(QuercusModule module) throws ConfigException(Code)
Adds a module



clearDefinitionCache
public void clearDefinitionCache()(Code)
Clears the definition cache.



close
public void close()(Code)



createEnv
public Env createEnv(QuercusPage page, WriteStream out, HttpServletRequest request, HttpServletResponse response)(Code)



createModuleContext
protected ModuleContext createModuleContext(ClassLoader loader)(Code)



createPageManager
protected PageManager createPageManager()(Code)



createSessionManager
protected QuercusSessionManager createSessionManager()(Code)



createStaticName
public String createStaticName()(Code)



createString
public StringValue createString(String v)(Code)



destroySession
public void destroySession(String sessionId)(Code)
Removes the session from the backing.



exnConstructor
public static Value exnConstructor(Env env, Value obj, String msg)(Code)



findClass
public ClassDef findClass(String name)(Code)
Returns the class with the given name.



findClassId
public int findClassId(String name)(Code)
Returns the id for a function name.



findDatabase
public DataSource findDatabase(String driver, String url)(Code)
Gets the default data source.



findFunction
public AbstractFunction findFunction(String name)(Code)
Returns the function with the given name.



findFunctionId
public int findFunctionId(String name)(Code)
Returns the id for a function name.



findFunctionImpl
public AbstractFunction findFunctionImpl(String name)(Code)
Returns the function with the given name.



findJavaClassWrapper
public ClassDef findJavaClassWrapper(String name)(Code)
Finds the java class wrapper.



findLowerFunctionImpl
public AbstractFunction findLowerFunctionImpl(String lowerName)(Code)
Returns the function with the given name.



findModule
public QuercusModule findModule(String name)(Code)
Returns the module with the given name.



getClassDefMap
public ClassDef[] getClassDefMap()(Code)
Returns the undefined functions



getClassId
public int getClassId(String name)(Code)
Returns the id for a class name.



getClassIdCount
public int getClassIdCount()(Code)
Returns the number of classes



getClassMap
public HashMap<String, ClassDef> getClassMap()(Code)
Returns the class maps.



getConnection
public Connection getConnection(Connection conn)(Code)
Unwrap connection if necessary.



getConstMap
public HashMap<String, Value> getConstMap()(Code)



getConstant
public Value getConstant(String name)(Code)
Returns a named constant.



getConstantId
public int getConstantId(String name)(Code)
Returns the id for a constant



getConstantIdSize
public int getConstantIdSize()(Code)
Returns the number of defined constants



getCookieName
public String getCookieName()(Code)



getDatabase
public DataSource getDatabase()(Code)
Gets the default data source.



getDefCacheHitCount
public long getDefCacheHitCount()(Code)
Returns the definition cache hit count.



getDefCacheMissCount
public long getDefCacheMissCount()(Code)
Returns the definition cache miss count.



getDefinedFunctions
public ArrayValue getDefinedFunctions()(Code)
Returns an array of the defined functions.



getExtensionFuncs
public Value getExtensionFuncs(String name)(Code)
Returns true if an extension is loaded.



getFunctionId
public int getFunctionId(String name)(Code)
Returns the id for a function name.



getFunctionIdCount
public int getFunctionIdCount()(Code)
Returns the number of functions



getFunctionMap
public AbstractFunction[] getFunctionMap()(Code)
Returns the undefined functions



getIncludeCache
public Path getIncludeCache(String include, String includePath, Path pwd, Path scriptPwd)(Code)
Returns an include path.



getIniBoolean
public boolean getIniBoolean(String name)(Code)
Returns an ini value.



getIniDefinitions
public IniDefinitions getIniDefinitions()(Code)
Returns the IniDefinitions for all ini that have been defined by modules.



getIniLong
public long getIniLong(String name)(Code)
Returns an ini value as a long.



getIniMap
public IdentityHashMap<String, Value> getIniMap(boolean create)(Code)
Returns a map of the ini values that have been explicitly set.



getJavaClassDefinition
public JavaClassDef getJavaClassDefinition(Class type, String className)(Code)
Adds a java class



getJavaClassDefinition
public JavaClassDef getJavaClassDefinition(String className)(Code)
Adds a java class



getLoadedExtensions
public HashSet<String> getLoadedExtensions()(Code)
Returns true if an extension is loaded.



getLocalContext
final public ModuleContext getLocalContext()(Code)
Returns the context for this class loader.



getLocalContext
public ModuleContext getLocalContext(ClassLoader loader)(Code)



getModuleContext
public ModuleContext getModuleContext()(Code)
Returns the module context.



getModuleStartupListeners
public HashSet<ModuleStartupListener> getModuleStartupListeners()(Code)
Returns a list of the modules that have some startup code to run.



getModules
public Collection<ModuleInfo> getModules()(Code)



getMysqlVersion
public String getMysqlVersion()(Code)



getPhpVersion
public String getPhpVersion()(Code)



getPwd
public Path getPwd()(Code)
Returns the working directory.



getQuercusSessionManager
public QuercusSessionManager getQuercusSessionManager()(Code)



getScriptEncoding
public String getScriptEncoding()(Code)



getServerEnv
public Value getServerEnv(StringValue name)(Code)
Gets a server env value.



getServerEnvMap
public HashMap<Value, Value> getServerEnvMap()(Code)
Returns the server env map.



getServletContext
public ServletContext getServletContext()(Code)



getSpecial
public Object getSpecial(String key)(Code)
Loads a special value



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



getStdClass
public QuercusClass getStdClass()(Code)
Returns the stdClass definition.



getVersion
public String getVersion()(Code)



getVersionDate
public String getVersionDate()(Code)



getWorkDir
public Path getWorkDir()(Code)



intern
public StringValue intern(String name)(Code)
Interns a string.



isCompile
public boolean isCompile()(Code)
true if the pages should be compiled.



isExtensionLoaded
public boolean isExtensionLoaded(String name)(Code)
Returns true if an extension is loaded.



isPro
public boolean isPro()(Code)



isRequireSource
public boolean isRequireSource()(Code)



isResin
public boolean isResin()(Code)



isStrict
public boolean isStrict()(Code)
Gets the strict mode.



isSuperGlobal
public static boolean isSuperGlobal(String name)(Code)
Returns true if the variable is a superglobal.



isUnicodeSemantics
public boolean isUnicodeSemantics()(Code)
Returns true if unicode.semantics is on.



loadSession
public SessionArrayValue loadSession(Env env, String sessionId)(Code)
Loads the session from the backing.



markForPoolRemoval
public void markForPoolRemoval(Connection conn)(Code)



objectToValue
public static Value objectToValue(Object obj)(Code)



parse
public QuercusPage parse(Path path) throws IOException(Code)
Parses a quercus program.
Parameters:
  path - the source file path the parsed program
throws:
  IOException -



parse
public QuercusPage parse(Path path, String fileName, int line) throws IOException(Code)
Parses a quercus program.
Parameters:
  path - the source file path the parsed program
throws:
  IOException -



parse
public QuercusPage parse(ReadStream is) throws IOException(Code)
Parses a quercus program.
Parameters:
  path - the source file path the parsed program
throws:
  IOException -



parseCode
public QuercusProgram parseCode(String code) throws IOException(Code)
Parses a quercus string.
Parameters:
  code - the source code the parsed program
throws:
  IOException -



parseEvalExpr
public QuercusProgram parseEvalExpr(String code) throws IOException(Code)
Parses a quercus string.
Parameters:
  code - the source code the parsed program
throws:
  IOException -



parseFunction
public Value parseFunction(String args, String code) throws IOException(Code)
Parses a function.
Parameters:
  args - the arguments
Parameters:
  code - the source code the parsed program
throws:
  IOException -



putIncludeCache
public void putIncludeCache(String include, String includePath, Path pwd, Path scriptPwd, Path path)(Code)
Adds an include path.



saveSession
public void saveSession(Env env, SessionArrayValue session)(Code)
Saves the session to the backing.



setCompile
public void setCompile(boolean isCompile)(Code)
Set true if pages should be compiled.



setDatabase
public void setDatabase(DataSource database)(Code)
Sets the default data source.



setIni
public void setIni(String name, StringValue value)(Code)
Sets an ini value.



setIni
public void setIni(String name, String value)(Code)
Sets an ini value.



setIniFile
public void setIniFile(Path path)(Code)
Sets an ini file.



setLazyCompile
public void setLazyCompile(boolean isCompile)(Code)
Set true if pages should be compiled.



setMysqlVersion
public void setMysqlVersion(String version)(Code)



setPhpVersion
public void setPhpVersion(String version)(Code)



setPwd
public void setPwd(Path path)(Code)
Sets the working directory.



setRequireSource
public void setRequireSource(boolean isRequireSource)(Code)



setScriptEncoding
public void setScriptEncoding(String encoding)(Code)



setServerEnv
public void setServerEnv(String name, String value)(Code)
Sets a server env value.



setServerEnv
public void setServerEnv(StringValue name, StringValue value)(Code)
Sets a server env value.



setServletContext
public void setServletContext(ServletContext servletContext)(Code)



setSpecial
public void setSpecial(String key, Object value)(Code)
Saves a special value



setStrict
public void setStrict(boolean isStrict)(Code)
Sets the strict mode.



setWorkDir
public void setWorkDir(Path workDir)(Code)



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.