Class 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.SClient getSClient​(javax.servlet.http.HttpServletRequest httpRequest, org.gcube.data.analysis.dataminermanagercl.server.util.ServiceCredentials serviceCredentials)  
      static org.gcube.data.analysis.dataminermanagercl.server.util.ServiceCredentials getServiceCredentials​(javax.servlet.http.HttpServletRequest httpServletRequest)  
      static org.gcube.data.analysis.dataminermanagercl.server.util.ServiceCredentials getServiceCredentials​(javax.servlet.http.HttpServletRequest httpServletRequest, String scopeGroupId)  
    • Constructor Detail

      • SessionUtil

        public SessionUtil()
    • 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 request
        scopeGroupId - 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 request
        serviceCredentials - service credendials
        Returns:
        client
        Throws:
        Exception - exception