com.caucho.jsp
Class Page
java.lang.Object
|
+--javax.servlet.GenericServlet
|
+--com.caucho.jsp.Page
- All Implemented Interfaces:
- CauchoPage, java.io.Serializable, Servlet, ServletConfig
- Direct Known Subclasses:
- JavaPage
- public abstract class Page
- extends GenericServlet
- implements CauchoPage
Represents a compiled JSP page.
- See Also:
- Serialized Form
Constructor Summary |
Page()
|
Method Summary |
protected void |
_caucho_addCacheDepend(Path path,
long lastModified,
long length)
|
protected void |
_caucho_addDepend(Path path)
|
protected void |
_caucho_addDepend(Path path,
long lastModified,
long length)
|
com.caucho.java.LineMap |
_caucho_getLineMap()
|
void |
_caucho_init(HttpServletRequest req,
HttpServletResponse res)
|
boolean |
_caucho_isModified()
|
long |
_caucho_lastModified()
The default Last-Modified time is just the most recently modified file. |
protected void |
_caucho_setAlwaysModified()
|
protected void |
_caucho_setCacheable()
|
protected void |
_caucho_setContentType(java.lang.String contentType,
java.lang.String encoding)
|
protected void |
_caucho_setNeverModified(boolean modified)
Set if the page is never modified. |
boolean |
cauchoIsModified()
|
long |
getLastModified(HttpServletRequest request)
Returns the Last-Modified time for use in caching. |
void |
init(com.caucho.java.LineMap lineMap,
Path path)
|
boolean |
isDead()
|
void |
service(CauchoRequest req,
CauchoResponse res,
java.util.HashMap properties)
The extended service method creates JavaScript global variables
from a property map. |
void |
service(ServletRequest request,
ServletResponse response)
Implements the standard Servlet API. |
protected abstract void |
subservice(CauchoRequest req,
CauchoResponse res,
java.util.HashMap properties)
|
Methods inherited from class javax.servlet.GenericServlet |
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
contentType
protected java.lang.String contentType
alwaysModified
protected boolean alwaysModified
neverModified
protected boolean neverModified
Page
public Page()
init
public void init(com.caucho.java.LineMap lineMap,
Path path)
throws ServletException
- Specified by:
init
in interface CauchoPage
_caucho_setContentType
protected void _caucho_setContentType(java.lang.String contentType,
java.lang.String encoding)
_caucho_setAlwaysModified
protected void _caucho_setAlwaysModified()
_caucho_setNeverModified
protected void _caucho_setNeverModified(boolean modified)
- Set if the page is never modified. Some users want to deploy
the JSP classes without the JSP source.
_caucho_addDepend
protected void _caucho_addDepend(Path path)
_caucho_addDepend
protected void _caucho_addDepend(Path path,
long lastModified,
long length)
_caucho_setCacheable
protected void _caucho_setCacheable()
_caucho_addCacheDepend
protected void _caucho_addCacheDepend(Path path,
long lastModified,
long length)
_caucho_isModified
public boolean _caucho_isModified()
- Specified by:
_caucho_isModified
in interface CauchoPage
cauchoIsModified
public boolean cauchoIsModified()
_caucho_init
public void _caucho_init(HttpServletRequest req,
HttpServletResponse res)
getLastModified
public long getLastModified(HttpServletRequest request)
- Returns the Last-Modified time for use in caching. If the result
is <= 0, last-modified caching is disabled.
- Returns:
- the last modified time.
_caucho_lastModified
public long _caucho_lastModified()
- The default Last-Modified time is just the most recently modified file.
For JSP files, this is overwritten to always return 0.
- Specified by:
_caucho_lastModified
in interface CauchoPage
service
public void service(ServletRequest request,
ServletResponse response)
throws java.io.IOException,
ServletException
- Implements the standard Servlet API.
- Following copied from interface:
javax.servlet.Servlet
- Parameters:
req
- request information. Normally servlets will cast this
to HttpServletRequest
res
- response information. Normally servlets will cast this
to HttpServletRequest
service
public void service(CauchoRequest req,
CauchoResponse res,
java.util.HashMap properties)
throws java.io.IOException,
ServletException
- The extended service method creates JavaScript global variables
from a property map.
This method only makes sense for JavaScript templates. To pass
variables to Java templates, use the setAttribute() method of the
request.
- Parameters:
properties
- hashmap of objects to create as JavaScript globals.
isDead
public boolean isDead()
_caucho_getLineMap
public com.caucho.java.LineMap _caucho_getLineMap()
- Specified by:
_caucho_getLineMap
in interface CauchoPage
subservice
protected abstract void subservice(CauchoRequest req,
CauchoResponse res,
java.util.HashMap properties)
throws java.io.IOException,
ServletException