public class ServletCategory
extends Object
Servlet support.
| Type Params | Return Type | Name and description |
|---|---|---|
|
public static Object |
get(ServletContext context, String key)Reads a servlet context attribute using property-style access. |
|
public static Object |
get(HttpSession session, String key)Reads an HTTP session attribute using property-style access. |
|
public static Object |
get(ServletRequest request, String key)Reads a request attribute using property-style access. |
|
public static Object |
get(PageContext context, String key)Reads a page context attribute using property-style access. |
|
public static Object |
getAt(ServletContext context, String key)Reads a servlet context attribute using Groovy subscript syntax. |
|
public static Object |
getAt(HttpSession session, String key)Reads an HTTP session attribute using Groovy subscript syntax. |
|
public static Object |
getAt(ServletRequest request, String key)Reads a request attribute using Groovy subscript syntax. |
|
public static Object |
getAt(PageContext context, String key)Reads a page context attribute using Groovy subscript syntax. |
|
public static void |
putAt(ServletContext context, String key, Object value)Stores a servlet context attribute using Groovy subscript syntax. |
|
public static void |
putAt(HttpSession session, String key, Object value)Stores an HTTP session attribute using Groovy subscript syntax. |
|
public static void |
putAt(ServletRequest request, String key, Object value)Stores a request attribute using Groovy subscript syntax. |
|
public static void |
putAt(PageContext context, String key, Object value)Stores a page context attribute using Groovy subscript syntax. |
|
public static void |
set(ServletContext context, String key, Object value)Stores a servlet context attribute using property-style access. |
|
public static void |
set(HttpSession session, String key, Object value)Stores an HTTP session attribute using property-style access. |
|
public static void |
set(ServletRequest request, String key, Object value)Stores a request attribute using property-style access. |
|
public static void |
set(PageContext context, String key, Object value)Stores a page context attribute using property-style access. |
Reads a servlet context attribute using property-style access.
context - the servlet contextkey - the attribute nameReads an HTTP session attribute using property-style access.
session - the HTTP sessionkey - the attribute nameReads a request attribute using property-style access.
request - the servlet requestkey - the attribute nameReads a page context attribute using property-style access.
context - the page contextkey - the attribute nameReads a servlet context attribute using Groovy subscript syntax.
context - the servlet contextkey - the attribute nameReads an HTTP session attribute using Groovy subscript syntax.
session - the HTTP sessionkey - the attribute nameReads a request attribute using Groovy subscript syntax.
request - the servlet requestkey - the attribute nameReads a page context attribute using Groovy subscript syntax.
context - the page contextkey - the attribute nameStores a servlet context attribute using Groovy subscript syntax.
context - the servlet contextkey - the attribute namevalue - the attribute valueStores an HTTP session attribute using Groovy subscript syntax.
session - the HTTP sessionkey - the attribute namevalue - the attribute valueStores a request attribute using Groovy subscript syntax.
request - the servlet requestkey - the attribute namevalue - the attribute valueStores a page context attribute using Groovy subscript syntax.
context - the page contextkey - the attribute namevalue - the attribute valueStores a servlet context attribute using property-style access.
context - the servlet contextkey - the attribute namevalue - the attribute valueStores an HTTP session attribute using property-style access.
session - the HTTP sessionkey - the attribute namevalue - the attribute valueStores a request attribute using property-style access.
request - the servlet requestkey - the attribute namevalue - the attribute valueStores a page context attribute using property-style access.
context - the page contextkey - the attribute namevalue - the attribute value