MCPcopy Index your code
hub / github.com/apache/tomcat / expire

Method expire

java/org/apache/catalina/authenticator/SingleSignOn.java:438–470  ·  view source on GitHub ↗
(SingleSignOnSessionKey key)

Source from the content-addressed store, hash-verified

436
437
438 private void expire(SingleSignOnSessionKey key) {
439 if (engine == null) {
440 containerLog.warn(sm.getString("singleSignOn.sessionExpire.engineNull", key));
441 return;
442 }
443 Container host = engine.findChild(key.getHostName());
444 if (host == null) {
445 containerLog.warn(sm.getString("singleSignOn.sessionExpire.hostNotFound", key));
446 return;
447 }
448 Context context = (Context) host.findChild(key.getContextName());
449 if (context == null) {
450 containerLog.warn(sm.getString("singleSignOn.sessionExpire.contextNotFound", key));
451 return;
452 }
453 Manager manager = context.getManager();
454 if (manager == null) {
455 containerLog.warn(sm.getString("singleSignOn.sessionExpire.managerNotFound", key));
456 return;
457 }
458 Session session;
459 try {
460 session = manager.findSession(key.getSessionId());
461 } catch (IOException ioe) {
462 containerLog.warn(sm.getString("singleSignOn.sessionExpire.managerError", key), ioe);
463 return;
464 }
465 if (session == null) {
466 containerLog.warn(sm.getString("singleSignOn.sessionExpire.sessionNotFound", key));
467 return;
468 }
469 session.expire();
470 }
471
472
473 /**

Callers 1

deregisterMethod · 0.95

Calls 9

findChildMethod · 0.95
getManagerMethod · 0.95
findSessionMethod · 0.95
expireMethod · 0.95
warnMethod · 0.65
getStringMethod · 0.65
getHostNameMethod · 0.65
getContextNameMethod · 0.65
getSessionIdMethod · 0.65

Tested by

no test coverage detected