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

Waffle / waffle / 6516

11 Mar 2026 12:15AM UTC coverage: 46.217%. Remained the same
6516

push

github

web-flow
Update dependency org.eclipse.jdt:ecj to v3.45.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-jna/src/main/java/waffle/util/NtlmServletRequest.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.util;
8

9
import javax.servlet.http.HttpServletRequest;
10

11
/**
12
 * The Class NtlmServletRequest.
13
 */
14
public final class NtlmServletRequest {
15

16
    /**
17
     * Instantiates a new ntlm servlet request.
18
     */
19
    private NtlmServletRequest() {
20
        // Prevent Instantiation of object
21
    }
22

23
    /**
24
     * Returns a unique connection id for a given servlet request.
25
     *
26
     * @param request
27
     *            Servlet request.
28
     *
29
     * @return String.
30
     */
31
    public static String getConnectionId(final HttpServletRequest request) {
32
        final String remoteHost = NtlmServletRequest.getRemoteHost(request);
×
33
        return String.join(":", remoteHost == null ? "" : remoteHost, String.valueOf(request.getRemotePort()));
×
34
    }
35

36
    /**
37
     * Gets the remote host.
38
     *
39
     * @param request
40
     *            the request
41
     *
42
     * @return the remote host
43
     */
44
    private static String getRemoteHost(final HttpServletRequest request) {
45
        return request.getRemoteHost() == null ? request.getRemoteAddr() : request.getRemoteHost();
×
46
    }
47

48
}
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