Subversion Repositories eFlore/Applications.del

Rev

Rev 1407 | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1407 Rev 1501
1
package org.tela_botanica.del.client.utils;
1
package org.tela_botanica.del.client.utils;
2
 
2
 
3
import com.google.gwt.user.client.History;
3
import com.google.gwt.user.client.History;
-
 
4
import com.google.gwt.user.client.Window;
4
 
5
 
5
public class URLUtils {
6
public class URLUtils {
6
 
7
 
7
	/**
8
	/**
8
	 * Renvoie le parametre contenu apres le signe ~dans l'url
9
	 * Renvoie le parametre contenu apres le signe ~dans l'url
9
	 * Utile pour passer des parametres dynamiquement
10
	 * Utile pour passer des parametres dynamiquement
10
	 * @return
11
	 * @return
11
	 */
12
	 */
12
	public static String getURLSpecialParameterValue() {
13
	public static String getURLSpecialParameterValue() {
13
		String historyToken = History.getToken();
14
		String historyToken = History.getToken();
14
		int debutParam = historyToken.indexOf("~");
15
		int debutParam = historyToken.indexOf("~");
-
 
16
		String specialParam = null;
-
 
17
		if(debutParam != -1) {
15
		return historyToken.substring(debutParam + 1);
18
			specialParam = historyToken.substring(debutParam + 1);
-
 
19
		}
-
 
20
		return specialParam;
16
	}
21
	}
17
 
22
 
18
}
23
}