|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.japano.PageNode org.japano.Page
public class Page
Base class for all japano JSP pages.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.japano.PageNode |
---|
PageNode.Output |
Field Summary | |
---|---|
protected javax.servlet.ServletContext |
application
|
protected JapanoConfig |
config
|
protected java.lang.String |
contentType
|
protected java.lang.String |
errorPageURI
|
protected Buffer |
out
|
protected javax.servlet.jsp.PageContext |
pageContext
|
protected java.util.List |
postGenerate
|
protected javax.servlet.http.HttpServletRequest |
request
|
protected javax.servlet.http.HttpServletResponse |
response
|
protected Session |
session
|
Fields inherited from class org.japano.PageNode |
---|
children, context, EMPTY, nodeId, parent |
Constructor Summary | |
---|---|
Page()
|
Method Summary | |
---|---|
void |
_jspService(Buffer out,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Jsp Service method |
void |
addNode(PageNode node)
Adds a node to this page. |
void |
clearAttributes()
|
void |
generate(Buffer out)
Generates this node The base implementation just calls PageNode.generateChildren(Buffer) |
java.lang.Object |
getAttribute(java.lang.String str)
|
java.util.Enumeration |
getAttributeNames()
|
java.lang.String |
getErrorPageURI()
|
java.util.List |
getMessages()
Returns all available messages and removes them from the page. |
java.util.List |
getMessagesFor(java.lang.Class actionClass)
Returns all available messages for the given action class and removes them from the page. |
void |
init()
Initializes the node. |
void |
initScope(java.util.Map attributes)
|
void |
part(java.lang.String id,
Buffer out,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
|
void |
register(java.lang.String id,
PageNode node)
|
void |
release()
Always called at the end of a page invocation. |
void |
removeAttribute(java.lang.String str)
|
void |
replace(java.lang.Object child,
java.lang.Object replacement)
Replaces a child instance with another instance. |
void |
setAttribute(java.lang.String str,
java.lang.Object obj)
|
void |
setContext(Context context)
|
Methods inherited from class org.japano.PageNode |
---|
findChildren, findParent, findRootNode, generateChildren, getChildren, getContext, getNodeId, getParent, recInit, setChildren, setContext, setNodeId, setParent |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected javax.servlet.jsp.PageContext pageContext
protected javax.servlet.http.HttpServletRequest request
protected javax.servlet.http.HttpServletResponse response
protected javax.servlet.ServletContext application
protected JapanoConfig config
protected Buffer out
protected Session session
protected java.lang.String contentType
protected java.util.List postGenerate
protected java.lang.String errorPageURI
Constructor Detail |
---|
public Page()
Method Detail |
---|
public void initScope(java.util.Map attributes)
public void setContext(Context context)
public void _jspService(Buffer out, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.jsp.JspException, java.io.IOException
request
- HttpServletRequestresponse
- HttpServletResponse
ServletException
java.io.IOException
javax.servlet.jsp.JspException
public void part(java.lang.String id, Buffer out, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.jsp.JspException, java.io.IOException
javax.servlet.jsp.JspException
java.io.IOException
public java.lang.Object getAttribute(java.lang.String str)
public void removeAttribute(java.lang.String str)
public void setAttribute(java.lang.String str, java.lang.Object obj)
public java.util.Enumeration getAttributeNames()
public void clearAttributes()
public void register(java.lang.String id, PageNode node)
public java.util.List getMessages()
public java.util.List getMessagesFor(java.lang.Class actionClass)
actionClass
- type of the actionpublic void addNode(PageNode node)
node
- nodepublic java.lang.String getErrorPageURI()
public void init()
PageNode
init
in class PageNode
public void generate(Buffer out)
PageNode
PageNode.generateChildren(Buffer)
generate
in class PageNode
public void replace(java.lang.Object child, java.lang.Object replacement)
child
- the child to be replaced.replacement
- the child to replace the former with.public void release()
PageNode
release
in class PageNode
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |