Subversion Repositories eFlore/Applications.del

Compare Revisions

Ignore whitespace Rev 1534 → Rev 1535

/tags/v1.1-helium/src/org/tela_botanica/del/client/utils/URLUtils.java
New file
0,0 → 1,23
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;
}
 
}