Rev 1496 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
package org.tela_botanica.del.client.services;
import org.tela_botanica.del.client.modeles.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() != null && ! Utilisateur.getJeton().isEmpty()) {
this.setHeader("Authorization", Utilisateur.getJeton());
}
this.setIncludeCredentials(true);
}
}