1 48 49 package com.caucho.burlap.client; 50 51 55 public class BurlapRemote { 56 private String type; 57 private String url; 58 59 65 public BurlapRemote(String type, String url) 66 { 67 this.type = type; 68 this.url = url; 69 } 70 71 74 public BurlapRemote() 75 { 76 } 77 78 81 public String getType() 82 { 83 return type; 84 } 85 86 89 public String getURL() 90 { 91 return url; 92 } 93 94 97 public void setURL(String url) 98 { 99 this.url = url; 100 } 101 102 105 public int hashCode() 106 { 107 return url.hashCode(); 108 } 109 110 113 public boolean equals(Object obj) 114 { 115 if (! (obj instanceof BurlapRemote)) 116 return false; 117 118 BurlapRemote remote = (BurlapRemote) obj; 119 120 return url.equals(remote.url); 121 } 122 123 126 public String toString() 127 { 128 return "[Remote " + url + "]"; 129 } 130 } 131 | Popular Tags |