• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Waffle / waffle / 6364

01 Feb 2026 02:07AM UTC coverage: 46.217%. Remained the same
6364

push

github

web-flow
Merge pull request #3206 from Waffle/renovate/checkstyle.version

Update dependency com.puppycrawl.tools:checkstyle to v13.1.0

276 of 734 branches covered (37.6%)

Branch coverage included in aggregate %.

1019 of 2068 relevant lines covered (49.27%)

1.0 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/Source/JNA/waffle-tests/src/main/java/waffle/mock/http/SimpleRequestDispatcher.java
1
/*
2
 * SPDX-License-Identifier: MIT
3
 * See LICENSE file for details.
4
 *
5
 * Copyright 2010-2026 The Waffle Project Contributors: https://github.com/Waffle/waffle/graphs/contributors
6
 */
7
package waffle.mock.http;
8

9
import java.io.IOException;
10

11
import javax.servlet.RequestDispatcher;
12
import javax.servlet.ServletException;
13
import javax.servlet.ServletRequest;
14
import javax.servlet.ServletResponse;
15
import javax.servlet.http.HttpServletResponse;
16

17
/**
18
 * The Class SimpleRequestDispatcher.
19
 */
20
public class SimpleRequestDispatcher implements RequestDispatcher {
21

22
    /** The url. */
23
    private final String url;
24

25
    /**
26
     * Instantiates a new simple request dispatcher.
27
     *
28
     * @param newUrl
29
     *            the new url
30
     */
31
    public SimpleRequestDispatcher(final String newUrl) {
×
32
        this.url = newUrl;
×
33
    }
×
34

35
    @Override
36
    public void forward(final ServletRequest request, final ServletResponse response)
37
            throws ServletException, IOException {
38
        final HttpServletResponse httpResponse = (HttpServletResponse) response;
×
39
        httpResponse.setStatus(304);
×
40
        httpResponse.addHeader("Location", this.url);
×
41
    }
×
42

43
    @Override
44
    public void include(final ServletRequest request, final ServletResponse response)
45
            throws ServletException, IOException {
46
        // Do Nothing
47
    }
×
48

49
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc