1 7 package com.inversoft.verge.util.url.config; 8 9 10 19 public class CategoryConfig { 20 21 private String name; 22 private String protocol; 23 private String host; 24 private int port; 25 private String context; 26 boolean https; 27 28 29 32 public CategoryConfig(String name, String protocol, String host, int port, 33 String context) { 34 this.name = name; 35 this.protocol = protocol; 36 this.host = host; 37 this.port = port; 38 this.context = context; 39 40 if (protocol != null && protocol.equals("https")) { 41 https = true; 42 } 43 } 44 45 50 public String getName() { 51 return name; 52 } 53 54 59 public void setName(String name) { 60 this.name = name; 61 } 62 63 68 public String getProtocol() { 69 return protocol; 70 } 71 72 77 public void setProtocol(String protocol) { 78 this.protocol = protocol; 79 } 80 81 86 public boolean isHttps() { 87 return https; 88 } 89 90 95 public String getHost() { 96 return host; 97 } 98 99 104 public void setHost(String host) { 105 this.host = host; 106 } 107 108 113 public int getPort() { 114 return port; 115 } 116 117 122 public void setPort(int port) { 123 this.port = port; 124 } 125 126 131 public String getContext() { 132 return context; 133 } 134 135 140 public void setContext(String context) { 141 this.context = context; 142 } 143 } | Popular Tags |