summaryrefslogtreecommitdiffstats
path: root/ecomp-sdk/epsdk-fw/src
diff options
context:
space:
mode:
authorstatta <statta@research.att.com>2020-07-16 14:23:01 -0400
committerstatta <statta@research.att.com>2020-07-29 17:59:37 -0400
commite4a4b56799d773d033ae2ef57a19891cd384de32 (patch)
tree1b1da5b84cde408040e5fd2812e4d0f18f8c22de /ecomp-sdk/epsdk-fw/src
parent5b557b51c6e41315ad48727340df8d3247154330 (diff)
Dynamic context determination via basehref
Issue-ID: PORTAL-949 Change-Id: Ia30876f51edd4a48633769c5a01f3646ca7fb9b2 Signed-off-by: statta <statta@research.att.com>
Diffstat (limited to 'ecomp-sdk/epsdk-fw/src')
-rw-r--r--ecomp-sdk/epsdk-fw/src/main/java/org/onap/portalsdk/core/onboarding/listener/PortalTimeoutHandler.java10
1 files changed, 6 insertions, 4 deletions
diff --git a/ecomp-sdk/epsdk-fw/src/main/java/org/onap/portalsdk/core/onboarding/listener/PortalTimeoutHandler.java b/ecomp-sdk/epsdk-fw/src/main/java/org/onap/portalsdk/core/onboarding/listener/PortalTimeoutHandler.java
index 1b3c79c0..90c39b52 100644
--- a/ecomp-sdk/epsdk-fw/src/main/java/org/onap/portalsdk/core/onboarding/listener/PortalTimeoutHandler.java
+++ b/ecomp-sdk/epsdk-fw/src/main/java/org/onap/portalsdk/core/onboarding/listener/PortalTimeoutHandler.java
@@ -84,7 +84,8 @@ public class PortalTimeoutHandler {
String sessionSlot = SessionCommunicationService.getSessionSlotCheckInterval(ecompRestURL, userName, pwd,
uebKey);
if (sessionSlot == null)
- return null;
+ sessionSlot = "30000"; // default to 5 minutes
+
return Integer.parseInt(sessionSlot);
}
@@ -341,18 +342,19 @@ public class PortalTimeoutHandler {
Object portalSessionSlotCheckObj = session.getServletContext()
.getAttribute(PortalApiConstants.PORTAL_SESSION_SLOT_CHECK);
- Integer portalSessionSlotCheckinMilliSec = 5 * 60 * 1000; // (5 minutes)
+ Integer portalSessionSlotCheckinMilliSec = 0;
if (portalSessionSlotCheckObj != null) {
portalSessionSlotCheckinMilliSec = Integer.valueOf(portalSessionSlotCheckObj.toString());
} else {
portalSessionSlotCheckObj = _sessionComm
.fetchSessionSlotCheckInterval(new String[] { ecompRestURL, userName, pwd, uebKey });
- logger.debug("Fetching Portal Session Slot Object: " + portalSessionSlotCheckObj);
+ logger.debug("Fetched Portal Session Slot Object: " + portalSessionSlotCheckObj);
+
if (portalSessionSlotCheckObj != null) {
portalSessionSlotCheckinMilliSec = Integer.valueOf(portalSessionSlotCheckObj.toString());
session.getServletContext().setAttribute(PortalApiConstants.PORTAL_SESSION_SLOT_CHECK,
portalSessionSlotCheckinMilliSec);
- }
+ }
}
Object previousToLastAccessTimeObj = session.getAttribute(PortalApiConstants.SESSION_PREVIOUS_ACCESS_TIME);