/** * Sets the fields of the URL {@code u} to the values of the supplied * arguments. */ protected void setURL(URL u, String protocol, String host, int port, String authority, String userInfo, String path, String query, String ref) { if (this != u.streamHandler) { throw new SecurityException(); } u.set(protocol, host, port, authority, userInfo, path, query, ref); }
set(context.protocol, context.getHost(), context.getPort(), context.getAuthority(), context.getUserInfo(), context.getPath(), context.getQuery(), context.getRef());
/** * Sets the properties of this URL using the provided arguments. Only a * {@code URLStreamHandler} can use this method to set fields of the * existing URL instance. A URL is generally constant. */ protected void set(String protocol, String host, int port, String authority, String userInfo, String path, String query, String ref) { String file = path; if (query != null && !query.isEmpty()) { file += "?" + query; } set(protocol, host, port, file, ref); this.authority = authority; this.userInfo = userInfo; this.path = path; this.query = query; } }
/** * Sets the fields of the URL {@code u} to the values of the supplied * arguments. * * @param u * the non-null URL object to be set. * @param protocol * the protocol. * @param host * the host name. * @param port * the port number. * @param file * the file component. * @param ref * the reference. * @deprecated Use setURL(URL, String String, int, String, String, String, * String, String) instead. */ @Deprecated protected void setURL(URL u, String protocol, String host, int port, String file, String ref) { if (this != u.streamHandler) { throw new SecurityException(); } u.set(protocol, host, port, file, ref); }
/** * Sets the fields of the URL {@code u} to the values of the supplied * arguments. */ protected void setURL(URL u, String protocol, String host, int port, String authority, String userInfo, String path, String query, String ref) { if (this != u.streamHandler) { throw new SecurityException(); } u.set(protocol, host, port, authority, userInfo, path, query, ref); }
/** * Sets the fields of the URL {@code u} to the values of the supplied * arguments. */ protected void setURL(URL u, String protocol, String host, int port, String authority, String userInfo, String path, String query, String ref) { if (this != u.streamHandler) { throw new SecurityException(); } u.set(protocol, host, port, authority, userInfo, path, query, ref); }
/** * Sets the fields of the URL {@code u} to the values of the supplied * arguments. */ protected void setURL(URL u, String protocol, String host, int port, String authority, String userInfo, String path, String query, String ref) { if (this != u.streamHandler) { throw new SecurityException(); } u.set(protocol, host, port, authority, userInfo, path, query, ref); }
/** * Sets the fields of the URL {@code u} to the values of the supplied * arguments. */ protected void setURL(URL u, String protocol, String host, int port, String authority, String userInfo, String path, String query, String ref) { if (this != u.streamHandler) { throw new SecurityException(); } u.set(protocol, host, port, authority, userInfo, path, query, ref); }
/** * Sets the fields of the URL {@code u} to the values of the supplied * arguments. */ protected void setURL(URL u, String protocol, String host, int port, String authority, String userInfo, String path, String query, String ref) { if (this != u.streamHandler) { throw new SecurityException(); } u.set(protocol, host, port, authority, userInfo, path, query, ref); }
/** * Sets the fields of the URL {@code u} to the values of the supplied * arguments. */ protected void setURL(URL u, String protocol, String host, int port, String authority, String userInfo, String path, String query, String ref) { if (this != u.streamHandler) { throw new SecurityException(); } u.set(protocol, host, port, authority, userInfo, path, query, ref); }
/** * Sets the fields of the URL {@code u} to the values of the supplied * arguments. */ protected void setURL(URL u, String protocol, String host, int port, String authority, String userInfo, String path, String query, String ref) { if (this != u.streamHandler) { throw new SecurityException(); } u.set(protocol, host, port, authority, userInfo, path, query, ref); }
/** * Sets the properties of this URL using the provided arguments. Only a * {@code URLStreamHandler} can use this method to set fields of the * existing URL instance. A URL is generally constant. */ protected void set(String protocol, String host, int port, String authority, String userInfo, String path, String query, String ref) { String file = path; if (query != null && !query.isEmpty()) { file += "?" + query; } set(protocol, host, port, file, ref); this.authority = authority; this.userInfo = userInfo; this.path = path; this.query = query; } }
/** * Sets the properties of this URL using the provided arguments. Only a * {@code URLStreamHandler} can use this method to set fields of the * existing URL instance. A URL is generally constant. */ protected void set(String protocol, String host, int port, String authority, String userInfo, String path, String query, String ref) { String file = path; if (query != null && !query.isEmpty()) { file += "?" + query; } set(protocol, host, port, file, ref); this.authority = authority; this.userInfo = userInfo; this.path = path; this.query = query; } }
/** * Sets the properties of this URL using the provided arguments. Only a * {@code URLStreamHandler} can use this method to set fields of the * existing URL instance. A URL is generally constant. */ protected void set(String protocol, String host, int port, String authority, String userInfo, String path, String query, String ref) { String file = path; if (query != null && !query.isEmpty()) { file += "?" + query; } set(protocol, host, port, file, ref); this.authority = authority; this.userInfo = userInfo; this.path = path; this.query = query; } }
/** * Sets the properties of this URL using the provided arguments. Only a * {@code URLStreamHandler} can use this method to set fields of the * existing URL instance. A URL is generally constant. */ protected void set(String protocol, String host, int port, String authority, String userInfo, String path, String query, String ref) { String file = path; if (query != null && !query.isEmpty()) { file += "?" + query; } set(protocol, host, port, file, ref); this.authority = authority; this.userInfo = userInfo; this.path = path; this.query = query; } }
/** * Sets the properties of this URL using the provided arguments. Only a * {@code URLStreamHandler} can use this method to set fields of the * existing URL instance. A URL is generally constant. */ protected void set(String protocol, String host, int port, String authority, String userInfo, String path, String query, String ref) { String file = path; if (query != null && !query.isEmpty()) { file += "?" + query; } set(protocol, host, port, file, ref); this.authority = authority; this.userInfo = userInfo; this.path = path; this.query = query; } }
/** * Sets the properties of this URL using the provided arguments. Only a * {@code URLStreamHandler} can use this method to set fields of the * existing URL instance. A URL is generally constant. */ protected void set(String protocol, String host, int port, String authority, String userInfo, String path, String query, String ref) { String file = path; if (query != null && !query.isEmpty()) { file += "?" + query; } set(protocol, host, port, file, ref); this.authority = authority; this.userInfo = userInfo; this.path = path; this.query = query; } }
/** * Sets the properties of this URL using the provided arguments. Only a * {@code URLStreamHandler} can use this method to set fields of the * existing URL instance. A URL is generally constant. */ protected void set(String protocol, String host, int port, String authority, String userInfo, String path, String query, String ref) { String file = path; if (query != null && !query.isEmpty()) { file += "?" + query; } set(protocol, host, port, file, ref); this.authority = authority; this.userInfo = userInfo; this.path = path; this.query = query; } }
/** * Sets the fields of the URL {@code u} to the values of the supplied * arguments. * * @param u the non-null URL object to be set. * @param protocol the protocol. * @param host the host name. * @param port the port number. * @param file the file component. * @param ref the reference. * @deprecated Use setURL(URL, String String, int, String, String, String, * String, String) instead. */ @Deprecated protected void setURL(URL u, String protocol, String host, int port, String file, String ref) { if (this != u.streamHandler) { throw new SecurityException(); } u.set(protocol, host, port, file, ref); }
/** * Sets the fields of the URL {@code u} to the values of the supplied * arguments. * * @param u * the non-null URL object to be set. * @param protocol * the protocol. * @param host * the host name. * @param port * the port number. * @param file * the file component. * @param ref * the reference. * @deprecated Use setURL(URL, String String, int, String, String, String, * String, String) instead. */ @Deprecated protected void setURL(URL u, String protocol, String host, int port, String file, String ref) { if (this != u.streamHandler) { throw new SecurityException(); } u.set(protocol, host, port, file, ref); }