Rev 1407 | Blame | Compare with Previous | Last modification | View Log | RSS feed
package org.tela_botanica.del.client.utils;
import com.google.gwt.user.client.History;
import com.google.gwt.user.client.Window;
public class URLUtils {
/**
* Renvoie le parametre contenu apres le signe ~dans l'url
* Utile pour passer des parametres dynamiquement
* @return
*/
public static String getURLSpecialParameterValue() {
String historyToken = History.getToken();
int debutParam = historyToken.indexOf("~");
String specialParam = null;
if(debutParam != -1) {
specialParam = historyToken.substring(debutParam + 1);
}
return specialParam;
}
}