|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.caucho.jsp.Page
public abstract class Page
Represents a compiled JSP page.
| Field Summary | |
|---|---|
protected boolean |
_alwaysModified
|
protected static java.util.logging.Logger |
_caucho_log
|
protected java.lang.String |
_contentType
|
protected boolean |
_neverModified
|
| Constructor Summary | |
|---|---|
Page()
|
|
| Method Summary | |
|---|---|
protected void |
_caucho_addCacheDepend(Path path,
long lastModified,
long length)
Adds a single cache dependency. |
protected void |
_caucho_addDepend(java.util.ArrayList<PersistentDependency> dependList)
Adds an array of dependencies to the page. |
protected void |
_caucho_addDepend(Path path)
Adds a dependency to the page. |
protected void |
_caucho_addDepend(Path path,
long lastModified,
long length)
Adds a JSP source dependency. |
protected void |
_caucho_addDepend(PersistentDependency depend)
Adds a dependency to the page. |
void |
_caucho_free()
Marks the page as free. |
WebApp |
_caucho_getApplication()
Returns the Resin webApp. |
protected java.util.HashMap<java.lang.String,java.lang.reflect.Method> |
_caucho_getFunctionMap()
|
void |
_caucho_init(HttpServletRequest req,
HttpServletResponse res)
Initialize the response headers. |
boolean |
_caucho_isModified()
Returns true if the underlying source has been modified. |
long |
_caucho_lastModified()
The default Last-Modified time is just the most recently modified file. |
protected void |
_caucho_setAlwaysModified()
When called treats the JSP page as always modified, i.e. |
protected void |
_caucho_setCacheable()
Marks the page as cacheable. |
protected void |
_caucho_setContentType(java.lang.String contentType,
java.lang.String encoding)
|
protected void |
_caucho_setModified()
When called treats the JSP page as always modified, i.e. |
protected void |
_caucho_setNeverModified(boolean modified)
Set if the page is never modified. |
void |
_caucho_use()
Marks the page as used. |
static long |
calculateLastModified(java.util.ArrayList<PersistentDependency> depends,
java.util.ArrayList<Depend> cacheDepends)
Calculate the last modified time for all the dependencies. |
boolean |
cauchoIsModified()
Returns true if the underlying source has been modified. |
void |
destroy()
Called when the servlet shuts down. |
java.lang.String |
getInitParameter(java.lang.String name)
Returns an initialization parameter. |
java.util.Enumeration |
getInitParameterNames()
Returns an enumeration of the init-parameter names |
long |
getLastModified(HttpServletRequest request)
Returns the Last-Modified time for use in caching. |
ServletConfig |
getServletConfig()
Returns this servlet's configuration. |
ServletContext |
getServletContext()
Returns the ServletContext for the servlet or filter. |
java.lang.String |
getServletInfo()
Returns an information string about the servlet. |
java.lang.String |
getServletName()
Returns the servlet name for this configuration. |
void |
init(Path path)
|
void |
init(ServletConfig config)
Initialize the servlet. |
boolean |
isDead()
|
boolean |
isInit()
Returns true if initializes. |
void |
log(java.lang.String msg)
|
void |
log(java.lang.String msg,
java.lang.Throwable cause)
|
void |
pageservice(HttpServletRequest req,
HttpServletResponse res)
The extended service method creates JavaScript global variables from a property map. |
protected void |
setDead()
|
boolean |
startRecompiling()
Starts recompiling. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.servlet.Servlet |
|---|
service |
| Field Detail |
|---|
protected static final java.util.logging.Logger _caucho_log
protected java.lang.String _contentType
protected boolean _alwaysModified
protected boolean _neverModified
| Constructor Detail |
|---|
public Page()
| Method Detail |
|---|
public void init(Path path)
throws ServletException
init in interface CauchoPageServletException
protected void _caucho_setContentType(java.lang.String contentType,
java.lang.String encoding)
protected void _caucho_setAlwaysModified()
protected void _caucho_setModified()
protected void _caucho_setNeverModified(boolean modified)
protected void _caucho_addDepend(Path path)
path - the file the JSP page is dependent on.protected void _caucho_addDepend(PersistentDependency depend)
path - the file the JSP page is dependent on.protected void _caucho_addDepend(java.util.ArrayList<PersistentDependency> dependList)
protected void _caucho_addDepend(Path path,
long lastModified,
long length)
path - the path to the filelastModified - the last modified timelength - the length of the fileprotected void _caucho_setCacheable()
protected void _caucho_addCacheDepend(Path path,
long lastModified,
long length)
path - the path to the filelastModified - the last modified timelength - the length of the filepublic boolean _caucho_isModified()
_caucho_isModified in interface CauchoPagepublic boolean cauchoIsModified()
protected java.util.HashMap<java.lang.String,java.lang.reflect.Method> _caucho_getFunctionMap()
public void init(ServletConfig config)
throws ServletException
init in interface Servletconfig - information from the configuration file.
ServletExceptionpublic boolean isInit()
public WebApp _caucho_getApplication()
_caucho_getApplication in interface CauchoPagepublic ServletContext getServletContext()
ServletConfig
getServletContext in interface ServletConfigpublic java.lang.String getServletName()
ServletConfig
<servlet servlet-name='myservlet'
servlet-class='test.MyServlet'/>
getServletName in interface ServletConfigpublic java.lang.String getInitParameter(java.lang.String name)
ServletConfig
<servlet servlet-name='myservlet'
servlet-class='test.MyServlet'>
<init-param param1='value1'/>
<init-param param2='value2'/>
</servlet>
getInitParameter in interface ServletConfigname - of the parameter
public java.util.Enumeration getInitParameterNames()
ServletConfig
getInitParameterNames in interface ServletConfigpublic void log(java.lang.String msg)
public void log(java.lang.String msg,
java.lang.Throwable cause)
public java.lang.String getServletInfo()
Servlet
getServletInfo in interface Servletpublic ServletConfig getServletConfig()
getServletConfig in interface Servlet
public void _caucho_init(HttpServletRequest req,
HttpServletResponse res)
public long getLastModified(HttpServletRequest request)
public long _caucho_lastModified()
_caucho_lastModified in interface CauchoPage
public static long calculateLastModified(java.util.ArrayList<PersistentDependency> depends,
java.util.ArrayList<Depend> cacheDepends)
depends - list of the source file dependenciescacheDepends - list of the cache dependencies
public void pageservice(HttpServletRequest req,
HttpServletResponse res)
throws java.io.IOException,
ServletException
This method only makes sense for JavaScript templates. To pass variables to Java templates, use the setAttribute() method of the request.
properties - hashmap of objects to create as JavaScript globals.
java.io.IOException
ServletExceptionprotected void setDead()
public boolean isDead()
public boolean startRecompiling()
public void _caucho_use()
public void _caucho_free()
public void destroy()
Servlet
destroy in interface Servlet
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||