| groovy.lang.Binding groovy.servlet.ServletBinding
ServletBinding | public class ServletBinding extends Binding (Code) | | Servlet-specific binding extension to lazy load the writer or the output
stream from the response.
Default variables bound
- "request" : the HttpServletRequest object
- "response" : the HttpServletResponse object
- "context" : the ServletContext object
- "application" : same as context
- "session" : convenient for
request.getSession(false) - can be null!
- "params" : map of all form parameters - can be empty
- "headers" : map of all request header fields
Implicite bound variables
- "out" : response.getWriter()
- "sout" : response.getOutputStream()
- "html" : new MarkupBuilder(response.getWriter())
author: Guillaume Laforge author: Christian Stein |
getVariable | public Object getVariable(String name)(Code) | | a writer, an output stream, a markup builder or another requested object |
|
|