/[svn]/jsampler/trunk/src/org/jsampler/Server.java
ViewVC logotype

Diff of /jsampler/trunk/src/org/jsampler/Server.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1785 by iliev, Tue Apr 29 22:22:40 2008 UTC revision 1786 by iliev, Wed Oct 8 22:38:15 2008 UTC
# Line 57  public class Server extends Resource { Line 57  public class Server extends Resource {
57           * @param name The new address of the server.           * @param name The new address of the server.
58           */           */
59          public void          public void
60          setAddress(String name) {          setAddress(String address) {
61                  this.address = address;                  this.address = address;
62                  fireChangeEvent();                  fireChangeEvent();
63          }          }
# Line 84  public class Server extends Resource { Line 84  public class Server extends Resource {
84          isLocal() {          isLocal() {
85                  if(getAddress() == null) return false;                  if(getAddress() == null) return false;
86                  if("127.0.0.1".equals(getAddress())) return true;                  if("127.0.0.1".equals(getAddress())) return true;
87                  if("localhost".equals(getAddress())) return true;                  if("localhost".equalsIgnoreCase(getAddress())) return true;
88                  return false;                  return false;
89          }          }
90                    
# Line 176  public class Server extends Resource { Line 176  public class Server extends Resource {
176                  node.appendChild(el);                  node.appendChild(el);
177          }          }
178                    
179            @Override
180          public String          public String
181          toString() { return getName(); }          toString() { return getName(); }
182  }  }

Legend:
Removed from v.1785  
changed lines
  Added in v.1786

  ViewVC Help
Powered by ViewVC