1 48 49 package com.caucho.hessian.io; 50 51 55 public class HessianRemote { 56 private String type; 57 private String url; 58 59 65 public HessianRemote(String type, String url) 66 { 67 this.type = type; 68 this.url = url; 69 } 70 71 74 public HessianRemote() 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 HessianRemote)) 116 return false; 117 118 HessianRemote remote = (HessianRemote) obj; 119 120 return url.equals(remote.url); 121 } 122 123 126 public String toString() 127 { 128 return "[HessianRemote " + url + "]"; 129 } 130 } 131 | Popular Tags |