Subversion Repositories eFlore/Applications.del

Rev

Rev 1035 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1035 Rev 1407
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
 
4
 
5
public class URLUtils {
5
public class URLUtils {
6
 
6
 
7
	/**
7
	/**
8
	 * Renvoie le parametre contenu apres le signe ~dans l'url
8
	 * Renvoie le parametre contenu apres le signe ~dans l'url
9
	 * Utile pour passer des parampetres dynamiquement
9
	 * Utile pour passer des parametres dynamiquement
10
	 * @return
10
	 * @return
11
	 */
11
	 */
12
	public static String getURLSpecialParameterValue() {
12
	public static String getURLSpecialParameterValue() {
13
		String historyToken = History.getToken();
13
		String historyToken = History.getToken();
14
		int debutParam = historyToken.indexOf("~");
14
		int debutParam = historyToken.indexOf("~");
15
		return historyToken.substring(debutParam + 1);
15
		return historyToken.substring(debutParam + 1);
16
	}
16
	}
17
 
17
 
18
}
18
}