Package com.atlassian.bamboo.filter
Class TrafficThroughPrimaryNodeOnlyFilter
java.lang.Object
com.atlassian.bamboo.filter.TrafficThroughPrimaryNodeOnlyFilter
- All Implemented Interfaces:
jakarta.servlet.Filter
It ensures the secondary nodes don't get any traffic except the status endpoint.
Only the primary node handles the requests.
All the requests routed to the secondary nodes are either redirected to the informative page or
responded to directly with a message, depending on the request's content type.
- Since:
- 9.5
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
TrafficThroughPrimaryNodeOnlyFilter
public TrafficThroughPrimaryNodeOnlyFilter()
-
-
Method Details
-
doFilter
public void doFilter(jakarta.servlet.ServletRequest request, jakarta.servlet.ServletResponse response, jakarta.servlet.FilterChain chain) throws IOException, jakarta.servlet.ServletException - Specified by:
doFilterin interfacejakarta.servlet.Filter- Throws:
IOExceptionjakarta.servlet.ServletException
-
init
public void init(jakarta.servlet.FilterConfig filterConfig) throws jakarta.servlet.ServletException - Specified by:
initin interfacejakarta.servlet.Filter- Throws:
jakarta.servlet.ServletException
-
destroy
public void destroy()- Specified by:
destroyin interfacejakarta.servlet.Filter
-