femoved inject context as it was useless
git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/portal/client-context-library@134942 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
0689fc24b0
commit
e543d209f8
|
@ -1,7 +1,6 @@
|
||||||
package org.gcube.portal.clientcontext.client;
|
package org.gcube.portal.clientcontext.client;
|
||||||
|
|
||||||
import com.google.gwt.core.client.EntryPoint;
|
import com.google.gwt.core.client.EntryPoint;
|
||||||
import com.google.gwt.http.client.RequestBuilder;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
|
@ -31,14 +30,5 @@ public class GCubeClientContext implements EntryPoint {
|
||||||
}
|
}
|
||||||
return userId;
|
return userId;
|
||||||
}-*/;
|
}-*/;
|
||||||
/**
|
|
||||||
* to be used in standard servlets requests before the actual request
|
|
||||||
* @param request
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
public static RequestBuilder injectContext(RequestBuilder request) {
|
|
||||||
request.setHeader(VRE_ID_ATTR_NAME, getCurrentContextId());
|
|
||||||
request.setHeader(USER_ID_ATTR_NAME, getCurrentUserId());
|
|
||||||
return request;
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue