Package dev.shortloop.agent
Class ShortloopSpringFilter
java.lang.Object
org.springframework.web.filter.GenericFilterBean
org.springframework.web.filter.OncePerRequestFilter
dev.shortloop.agent.ShortloopSpringFilter
- All Implemented Interfaces:
ConfigUpdateListener,javax.servlet.Filter,org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanNameAware,org.springframework.beans.factory.DisposableBean,org.springframework.beans.factory.InitializingBean,org.springframework.context.EnvironmentAware,org.springframework.core.env.EnvironmentCapable,org.springframework.web.context.ServletContextAware
@Order
public class ShortloopSpringFilter
extends org.springframework.web.filter.OncePerRequestFilter
implements ConfigUpdateListener
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class org.springframework.web.filter.OncePerRequestFilter
ALREADY_FILTERED_SUFFIX -
Constructor Summary
ConstructorsConstructorDescriptionShortloopSpringFilter(ConfigManager configManager, ShortloopApiProcessor apiProcessor, String userApplicationName, SDKLogger logger) -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoFilterInternal(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse, javax.servlet.FilterChain filterChain)booleaninit()voidvoidonSuccessfulConfigUpdate(dev.shortloop.common.models.data.AgentConfig agentConfig)Methods inherited from class org.springframework.web.filter.OncePerRequestFilter
doFilter, doFilterNestedErrorDispatch, getAlreadyFilteredAttributeName, isAsyncDispatch, isAsyncStarted, shouldNotFilter, shouldNotFilterAsyncDispatch, shouldNotFilterErrorDispatchMethods inherited from class org.springframework.web.filter.GenericFilterBean
addRequiredProperty, afterPropertiesSet, createEnvironment, destroy, getEnvironment, getFilterConfig, getFilterName, getServletContext, init, initBeanWrapper, initFilterBean, setBeanName, setEnvironment, setServletContext
-
Constructor Details
-
ShortloopSpringFilter
public ShortloopSpringFilter(ConfigManager configManager, ShortloopApiProcessor apiProcessor, String userApplicationName, SDKLogger logger)
-
-
Method Details
-
init
public boolean init() -
doFilterInternal
protected void doFilterInternal(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse, javax.servlet.FilterChain filterChain) throws javax.servlet.ServletException, IOException- Specified by:
doFilterInternalin classorg.springframework.web.filter.OncePerRequestFilter- Throws:
javax.servlet.ServletExceptionIOException
-
onSuccessfulConfigUpdate
public void onSuccessfulConfigUpdate(dev.shortloop.common.models.data.AgentConfig agentConfig)- Specified by:
onSuccessfulConfigUpdatein interfaceConfigUpdateListener
-
onErroneousConfigUpdate
public void onErroneousConfigUpdate()- Specified by:
onErroneousConfigUpdatein interfaceConfigUpdateListener
-