org.codehaus.groovy.grails.plugins.springsecurity
Class SecurityRequestHolder

java.lang.Object
  extended by org.codehaus.groovy.grails.plugins.springsecurity.SecurityRequestHolder

public final class SecurityRequestHolder
extends Object

Uses a ThreadLocal to store the current request.

Author:
Burt Beckwith

Method Summary
static javax.servlet.http.HttpServletRequest getRequest()
          Get the current request.
static void reset()
          Clear the saved request.
static void setRequest(javax.servlet.http.HttpServletRequest request)
          Set the current request.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

reset

public static void reset()
Clear the saved request.


setRequest

public static void setRequest(javax.servlet.http.HttpServletRequest request)
Set the current request.

Parameters:
request - the request

getRequest

public static javax.servlet.http.HttpServletRequest getRequest()
Get the current request.

Returns:
the request