Set the host component of the URL with a string. The elements of the host array are parsed out. @param rawHost The host as a string, e.g., foo.com
(String rawHost)
| 218 | * @param rawHost The host as a string, e.g., foo.com |
| 219 | */ |
| 220 | public void setHost(String rawHost) { |
| 221 | |
| 222 | if (rawHost == null || rawHost.length() < 1) { |
| 223 | return; |
| 224 | } |
| 225 | |
| 226 | this.host = new ArrayList<String>(Arrays.asList(rawHost.split("\\.", 0))); |
| 227 | |
| 228 | } |
| 229 | |
| 230 | /** |
| 231 | * Generate the raw URL from the component properties of this Url. If <code>raw</code> has been set, the output of this method |