public interface BaseServletContext
extends java.io.Serializable
Modifier and Type | Method and Description |
---|---|
void |
delAttr(java.lang.String key)
A shortcut convenience method that removes an attribute value from the
current session.
|
java.lang.Object |
getAttr(java.lang.String key)
A shortcut convenience method that returns an attribute value from the
current session.
|
java.math.BigDecimal |
getAttrBigDecimal(java.lang.String key)
A shortcut convenience method that returns an attribute value from the
current session as a
BigDecimal . |
boolean |
getAttrBoolean(java.lang.String key)
A shortcut convenience method that returns an attribute value from the
current session as a
boolean . |
double |
getAttrDouble(java.lang.String key)
A shortcut convenience method that returns an attribute value from the
current session as a
double . |
int |
getAttrInteger(java.lang.String key)
A shortcut convenience method that returns an attribute value from the
current session as an
int . |
long |
getAttrLong(java.lang.String key)
A shortcut convenience method that returns an attribute value from the
current session as a
long . |
java.lang.String |
getAttrString(java.lang.String key)
A shortcut convenience method that returns an attribute value from the
current session as a
String . |
java.lang.String |
getParam(java.lang.String name)
A shortcut convenience method that returns a parameter value from the
current request.
|
java.math.BigDecimal |
getParamBigDecimal(java.lang.String name)
A shortcut convenience method that returns a parameter value from the
current request as a
BigDecimal . |
java.util.Date |
getParamDate(java.lang.String name)
A shortcut convenience method that returns a parameter value from the
current request as a
java.util.Date . |
double |
getParamDouble(java.lang.String name)
A shortcut convenience method that returns a parameter value from the
current request as a
double . |
int |
getParamInteger(java.lang.String name)
A shortcut convenience method that returns a parameter value from the
current request as an
int . |
long |
getParamLong(java.lang.String name)
A shortcut convenience method that returns a parameter value from the
current request as a
long . |
java.lang.String[] |
getParams(java.lang.String name)
A shortcut convenience method that returns an array of parameter values
from the current request.
|
java.lang.String |
getParamString(java.lang.String name)
A shortcut convenience method that returns a parameter value from the
current request as a
String . |
javax.servlet.http.HttpServletRequest |
getRequest()
Returns the current servlet HTTP request.
|
javax.servlet.http.HttpServletResponse |
getResponse()
Returns the current servlet HTTP response.
|
javax.servlet.http.HttpSession |
getSession()
Returns the current servlet session.
|
boolean |
isPost()
Answers if a form has been posted by checking the current HTTP request's
method for "POST".
|
void |
setAttr(java.lang.String key,
java.lang.Object value)
A shortcut convenience method that sets an attribute value in the
current session.
|
void delAttr(java.lang.String key)
key
- (String) The key for the attribute value to remove.java.lang.Object getAttr(java.lang.String key)
key
- (String) The key for the desired attribute value.null
if a value for the key does not exist.java.math.BigDecimal getAttrBigDecimal(java.lang.String key)
BigDecimal
.key
- (String) The key for the desired attribute value.null
if a value for the key does not exist or if the
key's value could not be converted to a BigDecimal
.boolean getAttrBoolean(java.lang.String key)
boolean
.key
- (String) The key for the desired attribute value.false
if a value for the key does not exist or if the
key's value could not be converted to a boolean.double getAttrDouble(java.lang.String key)
double
.key
- (String) The key for the desired attribute value.int getAttrInteger(java.lang.String key)
int
.key
- (String) The key for the desired attribute value.long getAttrLong(java.lang.String key)
long
.key
- (String) The key for the desired attribute value.java.lang.String getAttrString(java.lang.String key)
String
.key
- (String) The key for the desired attribute value.void setAttr(java.lang.String key, java.lang.Object value)
key
- (String) The key associated with the value.value
- (Object) The attribute value to set.java.lang.String getParam(java.lang.String name)
name
- (String) The name of the desired parameter value.null
if a value for the parameter name
does not exist.java.lang.String[] getParams(java.lang.String name)
name
- (String) The name of the desired parameter values.null
if a value for the parameter name
does not exist.java.math.BigDecimal getParamBigDecimal(java.lang.String name)
BigDecimal
.name
- (String) The name of the desired parameter value.BigDecimal
.java.util.Date getParamDate(java.lang.String name)
java.util.Date
.name
- (String) The name of the desired parameter value.null
if a value for the parameter name does not
exist or if the parameter value could not be converted to a date.double getParamDouble(java.lang.String name)
double
.name
- (String) The name of the desired parameter value.int getParamInteger(java.lang.String name)
int
.name
- (String) The name of the desired parameter value.long getParamLong(java.lang.String name)
long
.name
- (String) The name of the desired parameter value.java.lang.String getParamString(java.lang.String name)
String
.name
- (String) The name of the desired parameter value.javax.servlet.http.HttpServletRequest getRequest()
javax.servlet.http.HttpServletResponse getResponse()
javax.servlet.http.HttpSession getSession()
boolean isPost()
true
if a form has been posted,
otherwise false
.