public class ServletBinding extends Binding
request.getSession(false)
- can be null!
Constructor and Description |
---|
ServletBinding(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
javax.servlet.ServletContext context)
Initializes a servlet binding.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getVariable(java.lang.String name) |
java.util.Map |
getVariables() |
void |
setVariable(java.lang.String name,
java.lang.Object value)
Sets the value of the given variable
|
getProperty, setProperty
getMetaClass, invokeMethod, setMetaClass
public ServletBinding(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.ServletContext context)
public void setVariable(java.lang.String name, java.lang.Object value)
Binding
setVariable
in class Binding
name
- the name of the variable to setvalue
- the new value for the given variablepublic java.util.Map getVariables()
getVariables
in class Binding
public java.lang.Object getVariable(java.lang.String name)
getVariable
in class Binding
name
- the name of the variable to lookup