Subversion Repositories eFlore/Applications.cel

Rev

Rev 1918 | Blame | Last modification | View Log | RSS feed

package org.tela_botanica.client.util;

import org.tela_botanica.client.modeles.objets.Utilisateur;

import com.google.gwt.http.client.RequestBuilder;

public class RequestBuilderWithCredentials extends RequestBuilder {

        public RequestBuilderWithCredentials(Method httpMethod, String url) {
                super(httpMethod, url);
                if(!Utilisateur.getJeton().isEmpty()) {
                        this.setHeader("Authorization", Utilisateur.getJeton());
                }
                this.setIncludeCredentials(true);
        }
}