|
JSPTemplates | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.tp23.jasper.runtime.ObjectPageContextImpl
Implementation similar to the PageContext class from the JSP spec. It was written
by the authors mentioned and then butchered by Paul Hinds to use it for a
different purpose ;)
Basically it is a set of three differnt properties in
order of preference...
Field Summary | |
protected java.util.Hashtable |
attributes
Description of the Field |
protected boolean |
autoFlush
Description of the Field |
protected int |
bufferSize
Description of the Field |
protected ObjectConfig |
config
Description of the Field |
protected ObjectContainerContext |
context
Description of the Field |
protected Destination |
destination
Description of the Field |
protected java.lang.String |
errorPageURL
Description of the Field |
protected ObjectJspFactory |
factory
Description of the Field |
protected boolean |
needsSession
Description of the Field |
protected ObjectJspWriter |
out
Description of the Field |
protected java.lang.Object |
page
Description of the Field |
protected JspBase |
servlet
Description of the Field |
protected Session |
session
Description of the Field |
Fields inherited from interface org.tp23.jsp.ObjectPageContext |
APPLICATION, APPLICATION_SCOPE, CONFIG, DESTINATION, DESTINATION_SCOPE, EXCEPTION, OUT, PAGE, PAGE_SCOPE, PAGECONTEXT, SESSION, SESSION_SCOPE |
Method Summary | |
protected ObjectJspWriter |
_createOut(int bufferSize,
boolean autoFlush)
Description of the Method |
java.lang.Object |
findAttribute(java.lang.String name)
Find an attribute lurking in on of the attribute sets. |
void |
forward(java.lang.String relativeUrlPath)
Destination.forward() |
java.lang.Object |
getAttribute(java.lang.String name)
Gets the attribute attribute of the ObjectPageContextImpl object |
java.lang.Object |
getAttribute(java.lang.String name,
int scope)
Gets the attribute attribute of the ObjectPageContextImpl object |
java.util.Enumeration |
getAttributeNamesInScope(int scope)
Gets the attributeNamesInScope attribute of the ObjectPageContextImpl object |
int |
getAttributesScope(java.lang.String name)
Gets the attributesScope attribute of the ObjectPageContextImpl object |
Destination |
getDestination()
Gets the destination attribute of the ObjectPageContextImpl object |
java.lang.Exception |
getException()
Gets the exception attribute of the ObjectPageContextImpl object |
ObjectConfig |
getObjectConfig()
Gets the objectConfig attribute of the ObjectPageContextImpl object |
ObjectContainerContext |
getObjectContainerContext()
Gets the servletContext attribute of the ObjectPageContextImpl object |
JspBase |
getObjectJspBase()
Gets the objectJspBase attribute of the ObjectPageContextImpl object |
ObjectJspWriter |
getOut()
Gets the out attribute of the ObjectPageContextImpl object |
JspBase |
getPage()
Gets the page attribute of the ObjectPageContextImpl object |
Session |
getSession()
Gets the session attribute of the ObjectPageContextImpl object |
void |
handlePageException(java.lang.Exception e)
Description of the Method |
void |
include(java.lang.String relativeUrlPath)
Includ a file (performed by Destination why is it here) |
void |
initialize(JspBase baseJsp,
Destination destination,
java.lang.String errorPageURL,
boolean needsSession,
int bufferSize,
boolean autoFlush)
|
ObjectJspWriter |
popBody()
Description of the Method |
ObjectJspWriter |
pushBody()
Description of the Method |
void |
release()
|
void |
removeAttribute(java.lang.String name)
remove from ALL attribute sets |
void |
removeAttribute(java.lang.String name,
int scope)
Remove an attribute from one of the attirbute sets |
void |
setAttribute(java.lang.String name,
java.lang.Object attribute)
Sets the attribute attribute of the ObjectPageContextImpl object |
void |
setAttribute(java.lang.String name,
java.lang.Object o,
int scope)
Sets the attribute attribute of the ObjectPageContextImpl object |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected Destination destination
protected JspBase servlet
protected ObjectConfig config
protected ObjectContainerContext context
protected ObjectJspFactory factory
protected boolean needsSession
protected java.lang.String errorPageURL
protected boolean autoFlush
protected int bufferSize
protected transient java.util.Hashtable attributes
protected transient java.lang.Object page
protected transient Session session
protected transient ObjectJspWriter out
Method Detail |
public void setAttribute(java.lang.String name, java.lang.Object attribute)
setAttribute
in interface ObjectPageContext
name
- The new attribute valueattribute
- The new attribute valuepublic void setAttribute(java.lang.String name, java.lang.Object o, int scope)
setAttribute
in interface ObjectPageContext
name
- The new attribute valueo
- The new attribute valuescope
- The new attribute valuepublic java.lang.Object getAttribute(java.lang.String name)
getAttribute
in interface ObjectPageContext
name
- Description of Parameterpublic java.lang.Object getAttribute(java.lang.String name, int scope)
getAttribute
in interface ObjectPageContext
name
- Description of Parameterscope
- Description of Parameterpublic int getAttributesScope(java.lang.String name)
getAttributesScope
in interface ObjectPageContext
name
- Description of Parameterpublic java.util.Enumeration getAttributeNamesInScope(int scope)
getAttributeNamesInScope
in interface ObjectPageContext
scope
- Description of Parameterpublic ObjectJspWriter getOut()
getOut
in interface ObjectPageContext
public Session getSession()
getSession
in interface ObjectPageContext
public JspBase getObjectJspBase()
public ObjectConfig getObjectConfig()
getObjectConfig
in interface ObjectPageContext
public ObjectContainerContext getObjectContainerContext()
getObjectContainerContext
in interface ObjectPageContext
public Destination getDestination()
getDestination
in interface ObjectPageContext
public java.lang.Exception getException()
getException
in interface ObjectPageContext
public JspBase getPage()
getPage
in interface ObjectPageContext
public void initialize(JspBase baseJsp, Destination destination, java.lang.String errorPageURL, boolean needsSession, int bufferSize, boolean autoFlush) throws java.io.IOException, java.lang.IllegalStateException, java.lang.IllegalArgumentException
initialize
in interface ObjectPageContext
public void release()
release
in interface ObjectPageContext
public void removeAttribute(java.lang.String name, int scope)
removeAttribute
in interface ObjectPageContext
name
- the attribute keyscope
- session , app , or page scopepublic java.lang.Object findAttribute(java.lang.String name)
findAttribute
in interface ObjectPageContext
name
- the keypublic void removeAttribute(java.lang.String name)
removeAttribute
in interface ObjectPageContext
name
- the keypublic void include(java.lang.String relativeUrlPath) throws JspEngineException, java.io.IOException
include
in interface ObjectPageContext
relativeUrlPath
- Description of Parameterpublic void forward(java.lang.String relativeUrlPath) throws JspEngineException, java.io.IOException
forward
in interface ObjectPageContext
relativeUrlPath
- Description of Parameterpublic ObjectJspWriter pushBody()
pushBody
in interface ObjectPageContext
public ObjectJspWriter popBody()
popBody
in interface ObjectPageContext
public void handlePageException(java.lang.Exception e) throws java.io.IOException, JspEngineException
handlePageException
in interface ObjectPageContext
e
- the exceptionjava.io.IOException
- JspEngineException
- protected ObjectJspWriter _createOut(int bufferSize, boolean autoFlush) throws java.io.IOException, java.lang.IllegalArgumentException
bufferSize
- Description of ParameterautoFlush
- Description of Parameterjava.io.IOException
- Description of Exceptionjava.lang.IllegalArgumentException
- Description of Exception
|
JSPTemplates | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |