Subversion Repositories eFlore/Applications.del

Rev

Rev 1407 | Rev 1503 | Go to most recent revision | 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;
        }

}