File tree Expand file tree Collapse file tree 3 files changed +29
-31
lines changed
src/main/java/org/java_websocket Expand file tree Collapse file tree 3 files changed +29
-31
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ package org .java_websocket .client ;
2+
3+ import java .net .InetAddress ;
4+ import java .net .URI ;
5+ import java .net .UnknownHostException ;
6+
7+ /**
8+ * Users may implement this interface to override the default DNS lookup offered
9+ * by the OS.
10+ *
11+ * @since 1.4.1
12+ */
13+ public interface DnsResolver {
14+
15+ /**
16+ * Resolves the IP address for the given URI.
17+ *
18+ * This method should never return null. If it's not able to resolve the IP
19+ * address then it should throw an UnknownHostException
20+ *
21+ * @param uri The URI to be resolved
22+ *
23+ * @return The resolved IP address
24+ *
25+ * @throws UnknownHostException if no IP address for the <code>uri</code> could be found.
26+ */
27+ InetAddress resolve (URI uri ) throws UnknownHostException ;
28+
29+ }
Original file line number Diff line number Diff line change 4848import javax .net .ssl .SSLSocketFactory ;
4949
5050import org .java_websocket .AbstractWebSocket ;
51- import org .java_websocket .DnsResolver ;
5251import org .java_websocket .WebSocket ;
5352import org .java_websocket .WebSocketImpl ;
5453import org .java_websocket .drafts .Draft ;
You can’t perform that action at this time.
0 commit comments