W - A generic type that extends SpringWorkpublic abstract class AbstractSpringWorkFilter<W extends SpringWork> extends AbstractHttpWorkFilter<W> implements org.springframework.context.ApplicationContextAware
The class should be configured as a Bean to get the Autowiring working. If you plan to
use the default configurer WorkTrackerConfigurer, you won't need to create this bean
since it's already provided by that configurer (for Spring Boot).
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_CLEANSER_BEAN_NAME |
| Constructor and Description |
|---|
AbstractSpringWorkFilter() |
| Modifier and Type | Method and Description |
|---|---|
protected javax.servlet.http.HttpServletRequest |
getHttpRequest(SpringWork payload,
javax.servlet.ServletRequest servletRequest) |
protected KeyCleanser |
getKeyCleanser() |
String |
getKeyCleanserBeanName() |
void |
setApplicationContext(org.springframework.context.ApplicationContext context) |
protected void |
setKeyCleanser(KeyCleanser keyCleanser) |
void |
setKeyCleanserBeanName(String beanName) |
createWork, doFilter, getLogger, setLoggergetFloodSensor, getOutstandingdestroy, getDetector, init, setDetector, setFloodSensor, setOutstandingpublic static final String DEFAULT_CLEANSER_BEAN_NAME
public void setApplicationContext(org.springframework.context.ApplicationContext context)
throws org.springframework.beans.BeansException
setApplicationContext in interface org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansExceptionprotected javax.servlet.http.HttpServletRequest getHttpRequest(SpringWork payload, javax.servlet.ServletRequest servletRequest)
getHttpRequest in class AbstractHttpWorkFilter<W extends SpringWork>public String getKeyCleanserBeanName()
public void setKeyCleanserBeanName(String beanName)
protected KeyCleanser getKeyCleanser()
protected void setKeyCleanser(KeyCleanser keyCleanser)
Copyright © 2018. All rights reserved.