blob: 657df860af32912267b42324312ba8113f1bbd7f [file] [log] [blame]
<!DOCTYPE HTML>
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (11.0.11) on Fri Oct 01 11:33:56 CDT 2021 -->
<title>SessionIdManager (Jetty :: Project 9.4.44.v20210927 API)</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="dc.created" content="2021-10-01">
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
<link rel="stylesheet" type="text/css" href="../../../../jquery/jquery-ui.css" title="Style">
<script type="text/javascript" src="../../../../script.js"></script>
<script type="text/javascript" src="../../../../jquery/jszip/dist/jszip.min.js"></script>
<script type="text/javascript" src="../../../../jquery/jszip-utils/dist/jszip-utils.min.js"></script>
<!--[if IE]>
<script type="text/javascript" src="../../../../jquery/jszip-utils/dist/jszip-utils-ie.min.js"></script>
<![endif]-->
<script type="text/javascript" src="../../../../jquery/jquery-3.5.1.js"></script>
<script type="text/javascript" src="../../../../jquery/jquery-ui.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="SessionIdManager (Jetty :: Project 9.4.44.v20210927 API)";
}
}
catch(err) {
}
//-->
var data = {"i0":6,"i1":6,"i2":6,"i3":6,"i4":6,"i5":6,"i6":6,"i7":6,"i8":6,"i9":6,"i10":6};
var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],4:["t3","Abstract Methods"]};
var altColor = "altColor";
var rowColor = "rowColor";
var tableTab = "tableTab";
var activeTableTab = "activeTableTab";
var pathtoroot = "../../../../";
var useModuleDirectories = false;
loadScripts(document, 'script');</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<header role="banner">
<nav role="navigation">
<div class="fixedNav">
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a id="navbar.top">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a id="navbar.top.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../index.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/SessionIdManager.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../index-all.html">Index</a></li>
<li><a href="../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../allclasses.html">All&nbsp;Classes</a></li>
</ul>
<ul class="navListSearch">
<li><label for="search">SEARCH:</label>
<input type="text" id="search" value="search" disabled="disabled">
<input type="reset" id="reset" value="reset" disabled="disabled">
</li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li><a href="#nested.class.summary">Nested</a>&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a id="skip.navbar.top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
</div>
<div class="navPadding">&nbsp;</div>
<script type="text/javascript"><!--
$('.navPadding').css('padding-top', $('.fixedNav').css("height"));
//-->
</script>
</nav>
</header>
<!-- ======== START OF CLASS DATA ======== -->
<main role="main">
<div class="header">
<div class="subTitle"><span class="packageLabelInType">Package</span>&nbsp;<a href="package-summary.html">org.eclipse.jetty.server</a></div>
<h2 title="Interface SessionIdManager" class="title">Interface SessionIdManager</h2>
</div>
<div class="contentContainer">
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>All Superinterfaces:</dt>
<dd><code><a href="../util/component/LifeCycle.html" title="interface in org.eclipse.jetty.util.component">LifeCycle</a></code></dd>
</dl>
<dl>
<dt>All Known Implementing Classes:</dt>
<dd><code><a href="session/DefaultSessionIdManager.html" title="class in org.eclipse.jetty.server.session">DefaultSessionIdManager</a></code></dd>
</dl>
<hr>
<pre>public interface <span class="typeNameLabel">SessionIdManager</span>
extends <a href="../util/component/LifeCycle.html" title="interface in org.eclipse.jetty.util.component">LifeCycle</a></pre>
<div class="block">Session ID Manager.
Manages session IDs across multiple contexts.</div>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ======== NESTED CLASS SUMMARY ======== -->
<section role="region">
<ul class="blockList">
<li class="blockList"><a id="nested.class.summary">
<!-- -->
</a>
<h3>Nested Class Summary</h3>
<ul class="blockList">
<li class="blockList"><a id="nested.classes.inherited.from.class.org.eclipse.jetty.util.component.LifeCycle">
<!-- -->
</a>
<h3>Nested classes/interfaces inherited from interface&nbsp;org.eclipse.jetty.util.component.<a href="../util/component/LifeCycle.html" title="interface in org.eclipse.jetty.util.component">LifeCycle</a></h3>
<code><a href="../util/component/LifeCycle.Listener.html" title="interface in org.eclipse.jetty.util.component">LifeCycle.Listener</a></code></li>
</ul>
</li>
</ul>
</section>
<!-- ========== METHOD SUMMARY =========== -->
<section role="region">
<ul class="blockList">
<li class="blockList"><a id="method.summary">
<!-- -->
</a>
<h3>Method Summary</h3>
<table class="memberSummary">
<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd">&nbsp;</span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t3" class="tableTab"><span><a href="javascript:show(4);">Abstract Methods</a></span><span class="tabEnd">&nbsp;</span></span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colSecond" scope="col">Method</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tr id="i0" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#expireAll(java.lang.String)">expireAll</a></span>&#8203;(java.lang.String&nbsp;id)</code></th>
<td class="colLast">
<div class="block">Expire all sessions on all contexts that share the same id.</div>
</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code>java.lang.String</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getExtendedId(java.lang.String,javax.servlet.http.HttpServletRequest)">getExtendedId</a></span>&#8203;(java.lang.String&nbsp;id,
javax.servlet.http.HttpServletRequest&nbsp;request)</code></th>
<td class="colLast">
<div class="block">Get an extended id for a session.</div>
</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code>java.lang.String</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getId(java.lang.String)">getId</a></span>&#8203;(java.lang.String&nbsp;qualifiedId)</code></th>
<td class="colLast">
<div class="block">Get just the session id from an id that includes the worker name
as a suffix.</div>
</td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code>java.util.Set&lt;<a href="session/SessionHandler.html" title="class in org.eclipse.jetty.server.session">SessionHandler</a>&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getSessionHandlers()">getSessionHandlers</a></span>()</code></th>
<td class="colLast">
<div class="block">Get the set of all session handlers for this node</div>
</td>
</tr>
<tr id="i4" class="altColor">
<td class="colFirst"><code><a href="session/HouseKeeper.html" title="class in org.eclipse.jetty.server.session">HouseKeeper</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getSessionHouseKeeper()">getSessionHouseKeeper</a></span>()</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i5" class="rowColor">
<td class="colFirst"><code>java.lang.String</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getWorkerName()">getWorkerName</a></span>()</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i6" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#invalidateAll(java.lang.String)">invalidateAll</a></span>&#8203;(java.lang.String&nbsp;id)</code></th>
<td class="colLast">
<div class="block">Invalidate all sessions on all contexts that share the same id.</div>
</td>
</tr>
<tr id="i7" class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#isIdInUse(java.lang.String)">isIdInUse</a></span>&#8203;(java.lang.String&nbsp;id)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i8" class="altColor">
<td class="colFirst"><code>java.lang.String</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#newSessionId(javax.servlet.http.HttpServletRequest,long)">newSessionId</a></span>&#8203;(javax.servlet.http.HttpServletRequest&nbsp;request,
long&nbsp;created)</code></th>
<td class="colLast">
<div class="block">Create a new Session ID.</div>
</td>
</tr>
<tr id="i9" class="rowColor">
<td class="colFirst"><code>java.lang.String</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#renewSessionId(java.lang.String,java.lang.String,javax.servlet.http.HttpServletRequest)">renewSessionId</a></span>&#8203;(java.lang.String&nbsp;oldId,
java.lang.String&nbsp;oldExtendedId,
javax.servlet.http.HttpServletRequest&nbsp;request)</code></th>
<td class="colLast">
<div class="block">Change the existing session id.</div>
</td>
</tr>
<tr id="i10" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setSessionHouseKeeper(org.eclipse.jetty.server.session.HouseKeeper)">setSessionHouseKeeper</a></span>&#8203;(<a href="session/HouseKeeper.html" title="class in org.eclipse.jetty.server.session">HouseKeeper</a>&nbsp;houseKeeper)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a id="methods.inherited.from.class.org.eclipse.jetty.util.component.LifeCycle">
<!-- -->
</a>
<h3>Methods inherited from interface&nbsp;org.eclipse.jetty.util.component.<a href="../util/component/LifeCycle.html" title="interface in org.eclipse.jetty.util.component">LifeCycle</a></h3>
<code><a href="../util/component/LifeCycle.html#addLifeCycleListener(org.eclipse.jetty.util.component.LifeCycle.Listener)">addLifeCycleListener</a>, <a href="../util/component/LifeCycle.html#isFailed()">isFailed</a>, <a href="../util/component/LifeCycle.html#isRunning()">isRunning</a>, <a href="../util/component/LifeCycle.html#isStarted()">isStarted</a>, <a href="../util/component/LifeCycle.html#isStarting()">isStarting</a>, <a href="../util/component/LifeCycle.html#isStopped()">isStopped</a>, <a href="../util/component/LifeCycle.html#isStopping()">isStopping</a>, <a href="../util/component/LifeCycle.html#removeLifeCycleListener(org.eclipse.jetty.util.component.LifeCycle.Listener)">removeLifeCycleListener</a>, <a href="../util/component/LifeCycle.html#start()">start</a>, <a href="../util/component/LifeCycle.html#stop()">stop</a></code></li>
</ul>
</li>
</ul>
</section>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ METHOD DETAIL ========== -->
<section role="region">
<ul class="blockList">
<li class="blockList"><a id="method.detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a id="isIdInUse(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isIdInUse</h4>
<pre class="methodSignature">boolean&nbsp;isIdInUse&#8203;(java.lang.String&nbsp;id)</pre>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>id</code> - The plain session ID (ie no workername extension)</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>True if the session ID is in use by at least one context.</dd>
</dl>
</li>
</ul>
<a id="expireAll(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>expireAll</h4>
<pre class="methodSignature">void&nbsp;expireAll&#8203;(java.lang.String&nbsp;id)</pre>
<div class="block">Expire all sessions on all contexts that share the same id.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>id</code> - The session ID without any cluster node extension</dd>
</dl>
</li>
</ul>
<a id="invalidateAll(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>invalidateAll</h4>
<pre class="methodSignature">void&nbsp;invalidateAll&#8203;(java.lang.String&nbsp;id)</pre>
<div class="block">Invalidate all sessions on all contexts that share the same id.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>id</code> - the session id</dd>
</dl>
</li>
</ul>
<a id="newSessionId(javax.servlet.http.HttpServletRequest,long)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>newSessionId</h4>
<pre class="methodSignature">java.lang.String&nbsp;newSessionId&#8203;(javax.servlet.http.HttpServletRequest&nbsp;request,
long&nbsp;created)</pre>
<div class="block">Create a new Session ID.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>request</code> - the request with the sesion</dd>
<dd><code>created</code> - the timestamp for when the session was created</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the new session id</dd>
</dl>
</li>
</ul>
<a id="getWorkerName()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getWorkerName</h4>
<pre class="methodSignature">java.lang.String&nbsp;getWorkerName()</pre>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the unique name of this server instance</dd>
</dl>
</li>
</ul>
<a id="getId(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getId</h4>
<pre class="methodSignature">java.lang.String&nbsp;getId&#8203;(java.lang.String&nbsp;qualifiedId)</pre>
<div class="block">Get just the session id from an id that includes the worker name
as a suffix.
Strip node identifier from a located session ID.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>qualifiedId</code> - the session id including the worker name</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the cluster id</dd>
</dl>
</li>
</ul>
<a id="getExtendedId(java.lang.String,javax.servlet.http.HttpServletRequest)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getExtendedId</h4>
<pre class="methodSignature">java.lang.String&nbsp;getExtendedId&#8203;(java.lang.String&nbsp;id,
javax.servlet.http.HttpServletRequest&nbsp;request)</pre>
<div class="block">Get an extended id for a session. An extended id contains
the workername as a suffix.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>id</code> - The id of the session</dd>
<dd><code>request</code> - The request that for the session (or null)</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The session id qualified with the worker name</dd>
</dl>
</li>
</ul>
<a id="renewSessionId(java.lang.String,java.lang.String,javax.servlet.http.HttpServletRequest)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>renewSessionId</h4>
<pre class="methodSignature">java.lang.String&nbsp;renewSessionId&#8203;(java.lang.String&nbsp;oldId,
java.lang.String&nbsp;oldExtendedId,
javax.servlet.http.HttpServletRequest&nbsp;request)</pre>
<div class="block">Change the existing session id.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>oldId</code> - the old plain session id</dd>
<dd><code>oldExtendedId</code> - the old fully qualified id</dd>
<dd><code>request</code> - the request containing the session</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the new session id</dd>
</dl>
</li>
</ul>
<a id="getSessionHandlers()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getSessionHandlers</h4>
<pre class="methodSignature">java.util.Set&lt;<a href="session/SessionHandler.html" title="class in org.eclipse.jetty.server.session">SessionHandler</a>&gt;&nbsp;getSessionHandlers()</pre>
<div class="block">Get the set of all session handlers for this node</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the set of session handlers</dd>
</dl>
</li>
</ul>
<a id="setSessionHouseKeeper(org.eclipse.jetty.server.session.HouseKeeper)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setSessionHouseKeeper</h4>
<pre class="methodSignature">void&nbsp;setSessionHouseKeeper&#8203;(<a href="session/HouseKeeper.html" title="class in org.eclipse.jetty.server.session">HouseKeeper</a>&nbsp;houseKeeper)</pre>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>houseKeeper</code> - the housekeeper for doing scavenging</dd>
</dl>
</li>
</ul>
<a id="getSessionHouseKeeper()">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>getSessionHouseKeeper</h4>
<pre class="methodSignature"><a href="session/HouseKeeper.html" title="class in org.eclipse.jetty.server.session">HouseKeeper</a>&nbsp;getSessionHouseKeeper()</pre>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the housekeeper for doing scavenging</dd>
</dl>
</li>
</ul>
</li>
</ul>
</section>
</li>
</ul>
</div>
</div>
</main>
<!-- ========= END OF CLASS DATA ========= -->
<footer role="contentinfo">
<nav role="navigation">
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a id="navbar.bottom">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<a id="navbar.bottom.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../index.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/SessionIdManager.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../index-all.html">Index</a></li>
<li><a href="../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../allclasses.html">All&nbsp;Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li><a href="#nested.class.summary">Nested</a>&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a id="skip.navbar.bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</nav>
<p class="legalCopy"><small>Copyright &#169; 1995&#x2013;2021 <a href="https://webtide.com">Webtide</a>. All rights reserved.</small></p>
</footer>
</body>
</html>