1 25 26 package org.objectweb.easybeans.component.carol; 27 28 32 public class Protocol { 33 34 37 private static final String DEFAULT_HOSTNAME = "localhost"; 38 39 42 private static final int DEFAULT_PORTNUMBER = 1099; 43 44 47 private String name = null; 48 49 52 private String url = null; 53 54 57 private String hostname = DEFAULT_HOSTNAME; 58 59 62 private int portNumber = DEFAULT_PORTNUMBER; 63 64 67 public String getHostname() { 68 return hostname; 69 } 70 71 75 public void setHostname(final String hostname) { 76 this.hostname = hostname; 77 } 78 79 82 public String getName() { 83 return name; 84 } 85 86 90 public void setName(final String name) { 91 this.name = name; 92 } 93 94 97 public int getPortNumber() { 98 return portNumber; 99 } 100 101 105 public void setPortNumber(final int portNumber) { 106 this.portNumber = portNumber; 107 } 108 109 112 public String getUrl() { 113 return url; 114 } 115 116 120 public void setUrl(final String url) { 121 this.url = url; 122 } 123 124 } 125 | Popular Tags |