Subversion Repositories eFlore/Applications.del

Rev

Rev 1501 | Details | Compare with Previous | Last modification | View Log | RSS feed

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