Code example for URL

Methods: toExternalForm

0
			return null; 
		} 
	} 
 
	public void setUrl(URL url) {
		this.urlString = url.toExternalForm();
	} 
 
	// To combine encoded strings into a multiple string, merely concatenate the 
	// strings 
	public static ArrayList<NameUrlPair> decodeMultipleNameUrlStrings(String nameUrlsString) {
		ArrayList<NameUrlPair> nameUrlPairs = new ArrayList<NameUrlPair>();
 
		if (nameUrlsString != null && nameUrlsString.length() != 0) {
			String[] nameUrlStrings = nameUrlsString.split(ResourceProvider.RECORD_SEPARATOR_PATTERN);
			for (String nameUrlString : nameUrlStrings) {
				String[] tuple = nameUrlString.split(ResourceProvider.FIELD_SEPARATOR_PATTERN);
				if (tuple.length == 2) {
					try { 
						String myUnencodedName = URLDecoder.decode(tuple[0], "UTF-8");
						String myUnencodedUrl = URLDecoder.decode(tuple[1], "UTF-8");