Code example for HttpRequest

Methods: addHeader

0
	@Override 
	public void applyToken(AbstractAjaxCallback<?, ?> cb, HttpRequest request) {
		 
		//AQUtility.debug("apply token", token); 
		 
		request.addHeader("Authorization", "GoogleLogin auth=" + token);
	} 
 
	@Override 
	public String getCacheUrl(String url){
		return url + "#" + token;
	} 
 
 
	@Override 
	public boolean authenticated() { 
		return token != null;
	}