... the user friendly GPS tool


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Pop-Up "Using proxy HTTP"
#7
Hi Christian,

I think I have found the origin of the problem.

Package slash.navigation.rest :

In the "HttpResponse" method of the "HttpRequest" class, there is a call to open a pop-up "JOptionPane.showMessageDialog..." that resembles a debug rest  :

protected HttpResponse execute() throws IOException {
        Proxy proxy = findProxy(method.getURI());
        if(proxy != NO_PROXY && !proxy.type().equals(DIRECT)) {
            SocketAddress address = proxy.address();
            if(address instanceof InetSocketAddress) {
                InetSocketAddress inetSocketAddress = (InetSocketAddress) address;
                requestConfigBuilder.setProxy(new HttpHost(inetSocketAddress.getHostName(), inetSocketAddress.getPort()));
                log.info(format("Using proxy %s for %s", proxy.toString(), method.getURI()));
               JOptionPane.showMessageDialog(null, format("Using proxy %s for %s", proxy.toString(), method.getURI()));
            }
        }


The previous line seems sufficient to feed the log file :

log.info(format("Using proxy %s for %s", proxy.toString(), method.getURI()));

I was partially tested by removing the line "JOptionPane.showMessageDialog..." the pop-up no longer appears.

What do you think of my analysis?

Cordially

Franck
Reply


Messages In This Thread
Pop-Up "Using proxy HTTP" - by efel - 04.04.2017, 12:58
RE: Pop-Up "Using proxy HTTP" - by efel - 19.04.2017, 10:14
RE: Pop-Up "Using proxy HTTP" - by efel - 24.04.2017, 15:34
RE: Pop-Up "Using proxy HTTP" - by efel - 28.04.2017, 12:57
RE: Pop-Up "Using proxy HTTP" - by mkuhr - 31.07.2017, 11:04
RE: Pop-Up "Using proxy HTTP" - by kumo - 01.08.2017, 21:36
RE: Pop-Up "Using proxy HTTP" - by mkuhr - 02.08.2017, 06:37

Forum Jump:


Users browsing this thread: 2 Guest(s)