Java Code Examples for org.littleshoot.proxy.HttpFilters#proxyToServerResolutionSucceeded()

The following examples show how to use org.littleshoot.proxy.HttpFilters#proxyToServerResolutionSucceeded() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: BrowserMobHttpFilterChain.java    From CapturePacket with MIT License 5 votes vote down vote up
@Override
public void proxyToServerResolutionSucceeded(String serverHostAndPort, InetSocketAddress resolvedRemoteAddress) {
    for (HttpFilters filter : filters) {
        try {
            filter.proxyToServerResolutionSucceeded(serverHostAndPort, resolvedRemoteAddress);
        } catch (RuntimeException e) {
            log.warn("Filter in filter chain threw exception. Filter method may have been aborted.", e);
        }
    }

    super.proxyToServerResolutionSucceeded(serverHostAndPort, resolvedRemoteAddress);
}
 
Example 2
Source File: BrowserMobHttpFilterChain.java    From Dream-Catcher with MIT License 5 votes vote down vote up
@Override
public void proxyToServerResolutionSucceeded(String serverHostAndPort, InetSocketAddress resolvedRemoteAddress) {
    for (HttpFilters filter : filters) {
        try {
            filter.proxyToServerResolutionSucceeded(serverHostAndPort, resolvedRemoteAddress);
        } catch (RuntimeException e) {
            log.warn("Filter in filter chain threw exception. Filter method may have been aborted.", e);
        }
    }

    super.proxyToServerResolutionSucceeded(serverHostAndPort, resolvedRemoteAddress);
}
 
Example 3
Source File: BrowserMobHttpFilterChain.java    From AndroidHttpCapture with MIT License 5 votes vote down vote up
@Override
public void proxyToServerResolutionSucceeded(String serverHostAndPort, InetSocketAddress resolvedRemoteAddress) {
    for (HttpFilters filter : filters) {
        try {
            filter.proxyToServerResolutionSucceeded(serverHostAndPort, resolvedRemoteAddress);
        } catch (RuntimeException e) {
            log.warn("Filter in filter chain threw exception. Filter method may have been aborted.", e);
        }
    }

    super.proxyToServerResolutionSucceeded(serverHostAndPort, resolvedRemoteAddress);
}