public class FormAuthFilter extends Object implements AuthFilter, groovy.lang.GroovyObject
| Constructor and Description |
|---|
FormAuthFilter() |
| Modifier and Type | Method and Description |
|---|---|
static void |
applySessionFilterFromOriginalRequestIfDefined(FilterableRequestSpecification requestSpec,
RequestSpecification loginRequestSpec) |
Response |
filter(FilterableRequestSpecification requestSpec,
FilterableResponseSpecification responseSpec,
FilterContext ctx)
Filter the incoming request and response specifications and outgoing response.
|
FormAuthConfig |
getFormAuthConfig() |
groovy.lang.MetaClass |
getMetaClass() |
Object |
getPassword() |
SessionConfig |
getSessionConfig() |
Object |
getUserName() |
static Object |
nullIfException(groovy.lang.Closure closure) |
void |
setFormAuthConfig(FormAuthConfig value) |
void |
setMetaClass(groovy.lang.MetaClass mc) |
void |
setPassword(Object value) |
void |
setSessionConfig(SessionConfig value) |
void |
setUserName(Object value) |
static Object |
throwIfException(groovy.lang.Closure closure) |
public Object getUserName()
public void setUserName(Object value)
public Object getPassword()
public void setPassword(Object value)
public FormAuthConfig getFormAuthConfig()
public void setFormAuthConfig(FormAuthConfig value)
public SessionConfig getSessionConfig()
public void setSessionConfig(SessionConfig value)
public Response filter(FilterableRequestSpecification requestSpec, FilterableResponseSpecification responseSpec, FilterContext ctx)
FilterFilterContext.next(FilterableRequestSpecification, FilterableResponseSpecification) when you're done otherwise the request will not be delivered.
It's of course possible to abort the filter chain execution by returning a Response directly.filter in interface FilterrequestSpec - The incoming request specresponseSpec - The incoming response specctx - The filter context. You need to call FilterContext.next(FilterableRequestSpecification, FilterableResponseSpecification) when you're done otherwise the request will not be delivered.public static void applySessionFilterFromOriginalRequestIfDefined(FilterableRequestSpecification requestSpec, RequestSpecification loginRequestSpec)
public static Object throwIfException(groovy.lang.Closure closure)
public static Object nullIfException(groovy.lang.Closure closure)
public groovy.lang.MetaClass getMetaClass()
getMetaClass in interface groovy.lang.GroovyObjectpublic void setMetaClass(groovy.lang.MetaClass mc)
setMetaClass in interface groovy.lang.GroovyObjectCopyright © 2010–2022. All rights reserved.