|
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectnet.sf.click.ClickApp
public class ClickApp
Seasar2のHOT deployに対応するために改編されたClickAppクラス。
TODO WARM deploy、COOL deploy時の性能改善(フィールドリフレクションのキャッシュ)
コンストラクタの概要 | |
---|---|
ClickApp()
|
メソッドの概要 | |
---|---|
java.lang.String |
getCharset()
Return the application character encoding. |
java.lang.Class |
getErrorPageClass()
Return the error handling page Page Class. |
org.apache.commons.fileupload.FileItemFactory |
getFileItemFactory()
Return the application FileItemFactory. |
net.sf.click.util.Format |
getFormat()
Return a new format object. |
java.util.Locale |
getLocale()
Return the application locale. |
net.sf.click.util.ClickLogger |
getLogger()
Return the application logger. |
java.lang.String |
getModeValue()
Return the application mode String value: ["production", "profile", "development", "debug"]. |
java.lang.Class |
getNotFoundPageClass()
Return the page not found Page Class. |
java.lang.Class |
getPageClass(java.lang.String path)
Return the page Class for the given path. |
java.lang.reflect.Field |
getPageField(java.lang.Class pageClass,
java.lang.String fieldName)
Return the public field of the given name for the pageClass, or null if not defined. |
java.lang.reflect.Field[] |
getPageFieldArray(java.lang.Class pageClass)
Return an array public fields for the given page class. |
java.util.Map |
getPageFields(java.lang.Class pageClass)
Return Map of public fields for the given page class. |
java.util.Map |
getPageHeaders(java.lang.String path)
Return the headers of the page for the given path. |
java.lang.String |
getPagePath(java.lang.Class pageClass)
Return the page path for the given page Class. |
javax.servlet.ServletContext |
getServletContext()
Return the Click Application servlet context. |
org.apache.velocity.Template |
getTemplate(java.lang.String path)
Return the Velocity Template for the give page path. |
org.apache.velocity.Template |
getTemplate(java.lang.String path,
java.lang.String charset)
Return the Velocity Template for the give page path. |
void |
init(net.sf.click.util.ClickLogger clickLogger)
Initialize the click application. |
boolean |
isJspPage(java.lang.String path)
Return true if JSP exists for the given ".htm" path. |
boolean |
isPagesAutoBinding()
Return true if auto binding is enabled. |
boolean |
isProductionMode()
Return true if the application is in PRODUCTION mode. |
org.xml.sax.InputSource |
resolveEntity(java.lang.String publicId,
java.lang.String systemId)
This method resolves the click.dtd for the XML parser using the classpath resource: /net/sf/click/click.dtd. |
void |
setServletContext(javax.servlet.ServletContext servletContext)
Set the Click Application servlet context. |
クラス java.lang.Object から継承されたメソッド |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
コンストラクタの詳細 |
---|
public ClickApp()
メソッドの詳細 |
---|
public javax.servlet.ServletContext getServletContext()
public void setServletContext(javax.servlet.ServletContext servletContext)
servletContext
- the application servlet contextpublic void init(net.sf.click.util.ClickLogger clickLogger) throws java.lang.Exception
clickLogger
- the Click runtime logger instance
java.lang.Exception
- if an error occurs initializing the applicationpublic org.xml.sax.InputSource resolveEntity(java.lang.String publicId, java.lang.String systemId) throws org.xml.sax.SAXException, java.io.IOException
org.xml.sax.EntityResolver
内の resolveEntity
org.xml.sax.SAXException
java.io.IOException
EntityResolver.resolveEntity(String, String)
public java.lang.String getCharset()
public org.apache.commons.fileupload.FileItemFactory getFileItemFactory()
public net.sf.click.util.Format getFormat()
public java.util.Locale getLocale()
public net.sf.click.util.ClickLogger getLogger()
public boolean isPagesAutoBinding()
public boolean isProductionMode()
public java.lang.String getModeValue()
public boolean isJspPage(java.lang.String path)
path
- the Page ".htm" path
public java.lang.Class getPageClass(java.lang.String path)
path
- the page path
public java.lang.String getPagePath(java.lang.Class pageClass)
pageClass
- the page class
public java.util.Map getPageHeaders(java.lang.String path)
path
- the path of the page
public java.lang.Class getNotFoundPageClass()
public java.lang.Class getErrorPageClass()
public org.apache.velocity.Template getTemplate(java.lang.String path) throws java.lang.Exception
path
- the Velocity template path
java.lang.Exception
- if Velocity error occurspublic org.apache.velocity.Template getTemplate(java.lang.String path, java.lang.String charset) throws java.lang.Exception
path
- the Velocity template pathcharset
- the template encoding charset
java.lang.Exception
- if Velocity error occurspublic java.lang.reflect.Field getPageField(java.lang.Class pageClass, java.lang.String fieldName)
pageClass
- the page classfieldName
- the name of the field
public java.lang.reflect.Field[] getPageFieldArray(java.lang.Class pageClass)
pageClass
- the page class
public java.util.Map getPageFields(java.lang.Class pageClass)
pageClass
- the page class
|
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |