home *** CD-ROM | disk | FTP | other *** search
- package sun.net.www.http;
-
- import java.net.URL;
-
- class KeepAliveKey {
- private String protocol;
- private String host;
- private int port;
-
- public KeepAliveKey(URL var1) {
- this.protocol = var1.getProtocol();
- this.host = var1.getHost();
- this.port = var1.getPort();
- }
-
- public boolean equals(Object var1) {
- if (!(var1 instanceof KeepAliveKey)) {
- return false;
- } else {
- KeepAliveKey var2 = (KeepAliveKey)var1;
- return this.host.equals(var2.host) && this.port == var2.port && this.protocol.equals(var2.protocol);
- }
- }
-
- public int hashCode() {
- String var1 = this.protocol + this.host + this.port;
- return var1.hashCode();
- }
- }
-