MCPcopy Create free account
hub / github.com/EsperoTech/yaade / setHost

Method setHost

server/src/main/java/com/postman/collection/Url.java:220–228  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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

Callers 2

setRawMethod · 0.95
UrlMethod · 0.95

Calls 1

lengthMethod · 0.80

Tested by

no test coverage detected