/** * Sets whether or not the HTTP service is using {@code https}. * * @param ssl {@code true} to denotes that the service use {@code https} * @return the current {@link HttpLocation} */ public HttpLocation setSsl(boolean ssl) { this.ssl = ssl; updateLocation(); return this; }
/** * Sets the host. * * @param host the host * @return the current {@link HttpLocation} */ public HttpLocation setHost(String host) { this.host = host; updateLocation(); return this; }
/** * Sets the port * * @param port the port * @return the current {@link HttpLocation} */ public HttpLocation setPort(int port) { this.port = port; updateLocation(); return this; }
/** * Sets the host. * * @param host the host * @return the current {@link HttpLocation} */ public HttpLocation setHost(String host) { this.host = host; updateLocation(); return this; }
/** * @return the path of the service (root) */ public String getRoot() { updateLocation(); return root; }
/** * Sets the port * * @param port the port * @return the current {@link HttpLocation} */ public HttpLocation setPort(int port) { this.port = port; updateLocation(); return this; }
/** * @return the path of the service (root) */ public String getRoot() { updateLocation(); return root; }
/** * Sets whether or not the HTTP service is using {@code https}. * * @param ssl {@code true} to denotes that the service use {@code https} * @return the current {@link HttpLocation} */ public HttpLocation setSsl(boolean ssl) { this.ssl = ssl; updateLocation(); return this; }
/** * Sets the path of the service (root) * * @param root the root * @return the current {@link HttpLocation} */ public HttpLocation setRoot(String root) { if (root.startsWith("/")) { this.root = root; } else { this.root = "/" + root; } updateLocation(); return this; }
/** * Sets the path of the service (root) * * @param root the root * @return the current {@link HttpLocation} */ public HttpLocation setRoot(String root) { if (root.startsWith("/")) { this.root = root; } else { this.root = "/" + root; } updateLocation(); return this; }