Class SessionUtil
- java.lang.Object
-
- org.gcube.portlets.widgets.dataminermanagerwidget.server.SessionUtil
-
public class SessionUtil extends Object
- Author:
- Giancarlo Panichi
-
-
Constructor Summary
Constructors Constructor Description SessionUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.gcube.data.analysis.dataminermanagercl.server.dmservice.SClientgetSClient(javax.servlet.http.HttpServletRequest httpRequest, org.gcube.data.analysis.dataminermanagercl.server.util.ServiceCredentials serviceCredentials)static org.gcube.data.analysis.dataminermanagercl.server.util.ServiceCredentialsgetServiceCredentials(javax.servlet.http.HttpServletRequest httpServletRequest)static org.gcube.data.analysis.dataminermanagercl.server.util.ServiceCredentialsgetServiceCredentials(javax.servlet.http.HttpServletRequest httpServletRequest, String scopeGroupId)
-
-
-
Method Detail
-
getServiceCredentials
public static org.gcube.data.analysis.dataminermanagercl.server.util.ServiceCredentials getServiceCredentials(javax.servlet.http.HttpServletRequest httpServletRequest) throws ServiceException- Parameters:
httpServletRequest- http servlet request- Returns:
- service credentials
- Throws:
ServiceException- service exception
-
getServiceCredentials
public static org.gcube.data.analysis.dataminermanagercl.server.util.ServiceCredentials getServiceCredentials(javax.servlet.http.HttpServletRequest httpServletRequest, String scopeGroupId) throws ServiceException- Parameters:
httpServletRequest- http servlet requestscopeGroupId- scope group id- Returns:
- service credentials
- Throws:
ServiceException- service exception
-
getSClient
public static org.gcube.data.analysis.dataminermanagercl.server.dmservice.SClient getSClient(javax.servlet.http.HttpServletRequest httpRequest, org.gcube.data.analysis.dataminermanagercl.server.util.ServiceCredentials serviceCredentials) throws Exception- Parameters:
httpRequest- http servlet requestserviceCredentials- service credendials- Returns:
- client
- Throws:
Exception- exception
-
-