public abstract class JspContext
extends java.lang.Object
Constructor and Description |
---|
JspContext() |
Modifier and Type | Method and Description |
---|---|
abstract java.lang.Object |
findAttribute(java.lang.String name)
Returns the specified attribute value from any scope, or null if not
found.
|
abstract java.lang.Object |
getAttribute(java.lang.String name)
Returns the specified attribute value in page scope.
|
abstract java.lang.Object |
getAttribute(java.lang.String name,
int scope)
Returns the specified attribute value in the specified scope.
|
abstract java.util.Enumeration |
getAttributeNamesInScope(int scope)
Returns all the attribute names in the given scope.
|
abstract int |
getAttributesScope(java.lang.String name)
Returns the scope of the given attribute.
|
abstract ELContext |
getELContext()
Returns the EL context associated with this context.
|
abstract ExpressionEvaluator |
getExpressionEvaluator()
Deprecated.
|
abstract JspWriter |
getOut()
Returns the
out page object. |
abstract VariableResolver |
getVariableResolver()
Deprecated.
|
abstract JspWriter |
popBody()
Returns the previous JspWriter saved by the last matching call
to
pushBody(java.io.Writer) . |
abstract JspWriter |
pushBody(java.io.Writer writer)
Returns a new JspWriter that wraps the specified writer.
|
abstract void |
removeAttribute(java.lang.String name)
Removes the specified attribute from all scopes.
|
abstract void |
removeAttribute(java.lang.String name,
int scope)
Removes the specified attribute from the specified scope.
|
abstract void |
setAttribute(java.lang.String name,
java.lang.Object value)
Set the specified attribute in page scope.
|
abstract void |
setAttribute(java.lang.String name,
java.lang.Object attribute,
int scope)
Set the specified attribute with the specified scope.
|
public abstract void setAttribute(java.lang.String name, java.lang.Object value)
name
- the attribute nameattribute
- value of the attributejava.lang.NullPointerException
- if name is nullpublic abstract void setAttribute(java.lang.String name, java.lang.Object attribute, int scope)
name
- the attribute nameattribute
- value of the attributescope
- scope of the attributejava.lang.NullPointerException
- if name is nulljava.lang.IllegalArgumentException
- if scope is not a valid scopePageContext.APPLICATION_SCOPE
,
PageContext.PAGE_SCOPE
,
PageContext.REQUEST_SCOPE
,
PageContext.SESSION_SCOPE
public abstract java.lang.Object getAttribute(java.lang.String name)
name
- the attribute namejava.lang.NullPointerException
- if name is nullpublic abstract java.lang.Object getAttribute(java.lang.String name, int scope)
name
- the attribute namescope
- scope of the attributejava.lang.NullPointerException
- if name is nulljava.lang.IllegalArgumentException
- if scope is not a valid scopePageContext.APPLICATION_SCOPE
,
PageContext.PAGE_SCOPE
,
PageContext.REQUEST_SCOPE
,
PageContext.SESSION_SCOPE
public abstract java.lang.Object findAttribute(java.lang.String name)
name
- the attribute namejava.lang.NullPointerException
- if name is nullpublic abstract void removeAttribute(java.lang.String name)
name
- the attribute namejava.lang.NullPointerException
- if name is nullpublic abstract void removeAttribute(java.lang.String name, int scope)
name
- the attribute namescope
- the scopejava.lang.NullPointerException
- if name is nulljava.lang.IllegalArgumentException
- if scope is not a valid scopePageContext.APPLICATION_SCOPE
,
PageContext.PAGE_SCOPE
,
PageContext.REQUEST_SCOPE
,
PageContext.SESSION_SCOPE
public abstract int getAttributesScope(java.lang.String name)
name
- the attribute namejava.lang.NullPointerException
- if name is nullpublic abstract java.util.Enumeration getAttributeNamesInScope(int scope)
scope
- the scopejava.lang.IllegalArgumentException
- if scope is not a valid scopepublic abstract JspWriter getOut()
out
page object.public abstract ExpressionEvaluator getExpressionEvaluator()
JspApplicationContext.getExpressionFactory()
public abstract VariableResolver getVariableResolver()
ELContext.getELResolver()
public abstract ELContext getELContext()
public abstract JspWriter pushBody(java.io.Writer writer)
out
page object.public abstract JspWriter popBody()
pushBody(java.io.Writer)
.
This updates the value of the out
page object.