Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for BlockFilter (0.29 sec)

  1. testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/server/http/BlockFilter.java

    import javax.servlet.ServletResponse;
    import java.io.IOException;
    import java.util.concurrent.CountDownLatch;
    import java.util.concurrent.TimeUnit;
    
    public class BlockFilter implements Filter {
    
        private final int blockForSeconds;
    
        public BlockFilter(int blockForSeconds) {
            this.blockForSeconds = blockForSeconds;
        }
    
        @Override
        public void init(FilterConfig filterConfig) throws ServletException {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  2. testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/server/http/HttpBuildCacheServer.groovy

        WebAppContext getCustomHandler() {
            return webapp
        }
    
        private void addFilters() {
            if (blockIncomingConnectionsForSeconds > 0) {
                this.webapp.addFilter(new FilterHolder(new BlockFilter(blockIncomingConnectionsForSeconds)), "/*", EnumSet.of(DispatcherType.REQUEST))
            }
            def filter = new Filter() {
                @Override
                void init(FilterConfig filterConfig) throws ServletException {
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 4.3K bytes
    - Viewed (0)
Back to top