org.littleshoot.proxy.DnsSecServerResolver Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of littleproxy Show documentation
Show all versions of littleproxy Show documentation
LittleProxy is a high performance HTTP proxy written in Java and using the Netty networking framework.
package org.littleshoot.proxy;
import java.net.InetSocketAddress;
import java.net.UnknownHostException;
import org.littleshoot.dnssec4j.VerifiedAddressFactory;
public class DnsSecServerResolver implements HostResolver {
@Override
public InetSocketAddress resolve(String host, int port)
throws UnknownHostException {
return VerifiedAddressFactory.newInetSocketAddress(host, port, true);
}
}