blob: eb41e726a734bcb5423247f17da0d97ce3668dd0 [file] [log] [blame]
<!DOCTYPE HTML>
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (11.0.11) on Mon Oct 11 11:08:51 CDT 2021 -->
<title>DefaultSessionIdManager (Eclipse Jetty API Doc - v10.0.7)</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="dc.created" content="2021-10-11">
<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="DefaultSessionIdManager (Eclipse Jetty API Doc - v10.0.7)";
}
}
catch(err) {
}
//-->
var data = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10,"i17":10,"i18":10,"i19":10,"i20":10,"i21":10,"i22":10};
var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
var altColor = "altColor";
var rowColor = "rowColor";
var tableTab = "tableTab";
var activeTableTab = "activeTableTab";
var pathtoroot = "../../../../../";
var useModuleDirectories = true;
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/DefaultSessionIdManager.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><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&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.session</a></div>
<h2 title="Class DefaultSessionIdManager" class="title">Class DefaultSessionIdManager</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li>java.lang.Object</li>
<li>
<ul class="inheritance">
<li><a href="../../util/component/AbstractLifeCycle.html" title="class in org.eclipse.jetty.util.component">org.eclipse.jetty.util.component.AbstractLifeCycle</a></li>
<li>
<ul class="inheritance">
<li><a href="../../util/component/ContainerLifeCycle.html" title="class in org.eclipse.jetty.util.component">org.eclipse.jetty.util.component.ContainerLifeCycle</a></li>
<li>
<ul class="inheritance">
<li>org.eclipse.jetty.server.session.DefaultSessionIdManager</li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>All Implemented Interfaces:</dt>
<dd><code><a href="../SessionIdManager.html" title="interface in org.eclipse.jetty.server">SessionIdManager</a></code>, <code><a href="../../util/component/Container.html" title="interface in org.eclipse.jetty.util.component">Container</a></code>, <code><a href="../../util/component/Destroyable.html" title="interface in org.eclipse.jetty.util.component">Destroyable</a></code>, <code><a href="../../util/component/Dumpable.html" title="interface in org.eclipse.jetty.util.component">Dumpable</a></code>, <code><a href="../../util/component/Dumpable.DumpableContainer.html" title="interface in org.eclipse.jetty.util.component">Dumpable.DumpableContainer</a></code>, <code><a href="../../util/component/LifeCycle.html" title="interface in org.eclipse.jetty.util.component">LifeCycle</a></code></dd>
</dl>
<hr>
<pre><a href="../../util/annotation/ManagedObject.html" title="annotation in org.eclipse.jetty.util.annotation">@ManagedObject</a>
public class <span class="typeNameLabel">DefaultSessionIdManager</span>
extends <a href="../../util/component/ContainerLifeCycle.html" title="class in org.eclipse.jetty.util.component">ContainerLifeCycle</a>
implements <a href="../SessionIdManager.html" title="interface in org.eclipse.jetty.server">SessionIdManager</a></pre>
<div class="block">DefaultSessionIdManager
Manages session ids to ensure each session id within a context is unique, and that
session ids can be shared across contexts (but not session contents).
There is only 1 session id manager per Server instance.
Runs a HouseKeeper thread to periodically check for expired Sessions.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="HouseKeeper.html" title="class in org.eclipse.jetty.server.session"><code>HouseKeeper</code></a></dd>
</dl>
</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.AbstractLifeCycle">
<!-- -->
</a>
<h3>Nested classes/interfaces inherited from class&nbsp;org.eclipse.jetty.util.component.<a href="../../util/component/AbstractLifeCycle.html" title="class in org.eclipse.jetty.util.component">AbstractLifeCycle</a></h3>
<code><a href="../../util/component/AbstractLifeCycle.AbstractLifeCycleListener.html" title="class in org.eclipse.jetty.util.component">AbstractLifeCycle.AbstractLifeCycleListener</a>, <a href="../../util/component/AbstractLifeCycle.StopException.html" title="class in org.eclipse.jetty.util.component">AbstractLifeCycle.StopException</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a id="nested.classes.inherited.from.class.org.eclipse.jetty.util.component.Container">
<!-- -->
</a>
<h3>Nested classes/interfaces inherited from interface&nbsp;org.eclipse.jetty.util.component.<a href="../../util/component/Container.html" title="interface in org.eclipse.jetty.util.component">Container</a></h3>
<code><a href="../../util/component/Container.InheritedListener.html" title="interface in org.eclipse.jetty.util.component">Container.InheritedListener</a>, <a href="../../util/component/Container.Listener.html" title="interface in org.eclipse.jetty.util.component">Container.Listener</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a id="nested.classes.inherited.from.class.org.eclipse.jetty.util.component.Dumpable">
<!-- -->
</a>
<h3>Nested classes/interfaces inherited from interface&nbsp;org.eclipse.jetty.util.component.<a href="../../util/component/Dumpable.html" title="interface in org.eclipse.jetty.util.component">Dumpable</a></h3>
<code><a href="../../util/component/Dumpable.DumpableContainer.html" title="interface in org.eclipse.jetty.util.component">Dumpable.DumpableContainer</a></code></li>
</ul>
<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>
<!-- =========== FIELD SUMMARY =========== -->
<section role="region">
<ul class="blockList">
<li class="blockList"><a id="field.summary">
<!-- -->
</a>
<h3>Field Summary</h3>
<table class="memberSummary">
<caption><span>Fields</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colSecond" scope="col">Field</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#__NEW_SESSION_ID">__NEW_SESSION_ID</a></span></code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected <a href="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="#_houseKeeper">_houseKeeper</a></span></code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected boolean</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#_ownHouseKeeper">_ownHouseKeeper</a></span></code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected java.util.Random</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#_random">_random</a></span></code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected long</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#_reseed">_reseed</a></span></code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected <a href="../Server.html" title="class in org.eclipse.jetty.server">Server</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#_server">_server</a></span></code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected boolean</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#_weakRandom">_weakRandom</a></span></code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected java.lang.String</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#_workerAttr">_workerAttr</a></span></code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected java.lang.String</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#_workerName">_workerName</a></span></code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected static java.util.concurrent.atomic.AtomicLong</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#COUNTER">COUNTER</a></span></code></th>
<td class="colLast">&nbsp;</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a id="fields.inherited.from.class.org.eclipse.jetty.util.component.AbstractLifeCycle">
<!-- -->
</a>
<h3>Fields inherited from class&nbsp;org.eclipse.jetty.util.component.<a href="../../util/component/AbstractLifeCycle.html" title="class in org.eclipse.jetty.util.component">AbstractLifeCycle</a></h3>
<code><a href="../../util/component/AbstractLifeCycle.html#FAILED">FAILED</a>, <a href="../../util/component/AbstractLifeCycle.html#STARTED">STARTED</a>, <a href="../../util/component/AbstractLifeCycle.html#STARTING">STARTING</a>, <a href="../../util/component/AbstractLifeCycle.html#STOPPED">STOPPED</a>, <a href="../../util/component/AbstractLifeCycle.html#STOPPING">STOPPING</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a id="fields.inherited.from.class.org.eclipse.jetty.util.component.Dumpable">
<!-- -->
</a>
<h3>Fields inherited from interface&nbsp;org.eclipse.jetty.util.component.<a href="../../util/component/Dumpable.html" title="interface in org.eclipse.jetty.util.component">Dumpable</a></h3>
<code><a href="../../util/component/Dumpable.html#KEY">KEY</a></code></li>
</ul>
</li>
</ul>
</section>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<section role="region">
<ul class="blockList">
<li class="blockList"><a id="constructor.summary">
<!-- -->
</a>
<h3>Constructor Summary</h3>
<table class="memberSummary">
<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Constructor</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tr class="altColor">
<th class="colConstructorName" scope="row"><code><span class="memberNameLink"><a href="#%3Cinit%3E(org.eclipse.jetty.server.Server)">DefaultSessionIdManager</a></span>&#8203;(<a href="../Server.html" title="class in org.eclipse.jetty.server">Server</a>&nbsp;server)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="rowColor">
<th class="colConstructorName" scope="row"><code><span class="memberNameLink"><a href="#%3Cinit%3E(org.eclipse.jetty.server.Server,java.util.Random)">DefaultSessionIdManager</a></span>&#8203;(<a href="../Server.html" title="class in org.eclipse.jetty.server">Server</a>&nbsp;server,
java.util.Random&nbsp;random)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
</table>
</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="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete 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>protected void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#doStart()">doStart</a></span>()</code></th>
<td class="colLast">
<div class="block">Starts the managed lifecycle beans in the order they were added.</div>
</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code>protected void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#doStop()">doStop</a></span>()</code></th>
<td class="colLast">
<div class="block">Stops the managed lifecycle beans in the reverse order they were added.</div>
</td>
</tr>
<tr id="i2" 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">Remove an id from use by telling all contexts to remove a session with this id.</div>
</td>
</tr>
<tr id="i3" 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;clusterId,
javax.servlet.http.HttpServletRequest&nbsp;request)</code></th>
<td class="colLast">
<div class="block">Get the session ID with any worker ID.</div>
</td>
</tr>
<tr id="i4" 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;extendedId)</code></th>
<td class="colLast">
<div class="block">Get the session ID without any worker ID.</div>
</td>
</tr>
<tr id="i5" class="rowColor">
<td class="colFirst"><code>java.util.Random</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getRandom()">getRandom</a></span>()</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i6" class="altColor">
<td class="colFirst"><code>long</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getReseed()">getReseed</a></span>()</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i7" class="rowColor">
<td class="colFirst"><code><a href="../Server.html" title="class in org.eclipse.jetty.server">Server</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getServer()">getServer</a></span>()</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i8" class="altColor">
<td class="colFirst"><code>java.util.Set&lt;<a href="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 SessionHandler for every context.</div>
</td>
</tr>
<tr id="i9" class="rowColor">
<td class="colFirst"><code><a href="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="i10" class="altColor">
<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">
<div class="block">Get the workname.</div>
</td>
</tr>
<tr id="i11" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#initRandom()">initRandom</a></span>()</code></th>
<td class="colLast">
<div class="block">Set up a random number generator for the sessionids.</div>
</td>
</tr>
<tr id="i12" 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="i13" 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="i14" class="altColor">
<td class="colFirst"><code>java.lang.String</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#newSessionId(long)">newSessionId</a></span>&#8203;(long&nbsp;seedTerm)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i15" class="rowColor">
<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 if necessary.</div>
</td>
</tr>
<tr id="i16" class="altColor">
<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;oldClusterId,
java.lang.String&nbsp;oldNodeId,
javax.servlet.http.HttpServletRequest&nbsp;request)</code></th>
<td class="colLast">
<div class="block">Generate a new id for a session and update across
all SessionManagers.</div>
</td>
</tr>
<tr id="i17" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setRandom(java.util.Random)">setRandom</a></span>&#8203;(java.util.Random&nbsp;random)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i18" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setReseed(long)">setReseed</a></span>&#8203;(long&nbsp;reseed)</code></th>
<td class="colLast">
<div class="block">Set the reseed probability.</div>
</td>
</tr>
<tr id="i19" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setServer(org.eclipse.jetty.server.Server)">setServer</a></span>&#8203;(<a href="../Server.html" title="class in org.eclipse.jetty.server">Server</a>&nbsp;server)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i20" 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="HouseKeeper.html" title="class in org.eclipse.jetty.server.session">HouseKeeper</a>&nbsp;houseKeeper)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i21" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setWorkerName(java.lang.String)">setWorkerName</a></span>&#8203;(java.lang.String&nbsp;workerName)</code></th>
<td class="colLast">
<div class="block">Set the workername.</div>
</td>
</tr>
<tr id="i22" class="altColor">
<td class="colFirst"><code>java.lang.String</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#toString()">toString</a></span>()</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.ContainerLifeCycle">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;org.eclipse.jetty.util.component.<a href="../../util/component/ContainerLifeCycle.html" title="class in org.eclipse.jetty.util.component">ContainerLifeCycle</a></h3>
<code><a href="../../util/component/ContainerLifeCycle.html#addBean(java.lang.Object)">addBean</a>, <a href="../../util/component/ContainerLifeCycle.html#addBean(java.lang.Object,boolean)">addBean</a>, <a href="../../util/component/ContainerLifeCycle.html#addEventListener(java.util.EventListener)">addEventListener</a>, <a href="../../util/component/ContainerLifeCycle.html#addManaged(org.eclipse.jetty.util.component.LifeCycle)">addManaged</a>, <a href="../../util/component/ContainerLifeCycle.html#contains(java.lang.Object)">contains</a>, <a href="../../util/component/ContainerLifeCycle.html#destroy()">destroy</a>, <a href="../../util/component/ContainerLifeCycle.html#dump()">dump</a>, <a href="../../util/component/ContainerLifeCycle.html#dump(java.lang.Appendable)">dump</a>, <a href="../../util/component/ContainerLifeCycle.html#dump(java.lang.Appendable,java.lang.String)">dump</a>, <a href="../../util/component/ContainerLifeCycle.html#dumpObjects(java.lang.Appendable,java.lang.String,java.lang.Object...)">dumpObjects</a>, <a href="../../util/component/ContainerLifeCycle.html#dumpStdErr()">dumpStdErr</a>, <a href="../../util/component/ContainerLifeCycle.html#getBean(java.lang.Class)">getBean</a>, <a href="../../util/component/ContainerLifeCycle.html#getBeans()">getBeans</a>, <a href="../../util/component/ContainerLifeCycle.html#getBeans(java.lang.Class)">getBeans</a>, <a href="../../util/component/ContainerLifeCycle.html#getContainedBeans(java.lang.Class)">getContainedBeans</a>, <a href="../../util/component/ContainerLifeCycle.html#getContainedBeans(java.lang.Class,java.util.Collection)">getContainedBeans</a>, <a href="../../util/component/ContainerLifeCycle.html#isAuto(java.lang.Object)">isAuto</a>, <a href="../../util/component/ContainerLifeCycle.html#isManaged(java.lang.Object)">isManaged</a>, <a href="../../util/component/ContainerLifeCycle.html#isUnmanaged(java.lang.Object)">isUnmanaged</a>, <a href="../../util/component/ContainerLifeCycle.html#manage(java.lang.Object)">manage</a>, <a href="../../util/component/ContainerLifeCycle.html#removeBean(java.lang.Object)">removeBean</a>, <a href="../../util/component/ContainerLifeCycle.html#removeBeans()">removeBeans</a>, <a href="../../util/component/ContainerLifeCycle.html#removeEventListener(java.util.EventListener)">removeEventListener</a>, <a href="../../util/component/ContainerLifeCycle.html#setBeans(java.util.Collection)">setBeans</a>, <a href="../../util/component/ContainerLifeCycle.html#start(org.eclipse.jetty.util.component.LifeCycle)">start</a>, <a href="../../util/component/ContainerLifeCycle.html#stop(org.eclipse.jetty.util.component.LifeCycle)">stop</a>, <a href="../../util/component/ContainerLifeCycle.html#unmanage(java.lang.Object)">unmanage</a>, <a href="../../util/component/ContainerLifeCycle.html#updateBean(java.lang.Object,java.lang.Object)">updateBean</a>, <a href="../../util/component/ContainerLifeCycle.html#updateBean(java.lang.Object,java.lang.Object,boolean)">updateBean</a>, <a href="../../util/component/ContainerLifeCycle.html#updateBeans(java.lang.Object%5B%5D,java.lang.Object%5B%5D)">updateBeans</a>, <a href="../../util/component/ContainerLifeCycle.html#updateBeans(java.util.Collection,java.util.Collection)">updateBeans</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a id="methods.inherited.from.class.org.eclipse.jetty.util.component.AbstractLifeCycle">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;org.eclipse.jetty.util.component.<a href="../../util/component/AbstractLifeCycle.html" title="class in org.eclipse.jetty.util.component">AbstractLifeCycle</a></h3>
<code><a href="../../util/component/AbstractLifeCycle.html#getEventListeners()">getEventListeners</a>, <a href="../../util/component/AbstractLifeCycle.html#getState()">getState</a>, <a href="../../util/component/AbstractLifeCycle.html#getState(org.eclipse.jetty.util.component.LifeCycle)">getState</a>, <a href="../../util/component/AbstractLifeCycle.html#isFailed()">isFailed</a>, <a href="../../util/component/AbstractLifeCycle.html#isRunning()">isRunning</a>, <a href="../../util/component/AbstractLifeCycle.html#isStarted()">isStarted</a>, <a href="../../util/component/AbstractLifeCycle.html#isStarting()">isStarting</a>, <a href="../../util/component/AbstractLifeCycle.html#isStopped()">isStopped</a>, <a href="../../util/component/AbstractLifeCycle.html#isStopping()">isStopping</a>, <a href="../../util/component/AbstractLifeCycle.html#setEventListeners(java.util.Collection)">setEventListeners</a>, <a href="../../util/component/AbstractLifeCycle.html#start()">start</a>, <a href="../../util/component/AbstractLifeCycle.html#stop()">stop</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a id="methods.inherited.from.class.java.lang.Object">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;java.lang.Object</h3>
<code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait</code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a id="methods.inherited.from.class.org.eclipse.jetty.util.component.Container">
<!-- -->
</a>
<h3>Methods inherited from interface&nbsp;org.eclipse.jetty.util.component.<a href="../../util/component/Container.html" title="interface in org.eclipse.jetty.util.component">Container</a></h3>
<code><a href="../../util/component/Container.html#getCachedBeans(java.lang.Class)">getCachedBeans</a>, <a href="../../util/component/Container.html#getEventListeners()">getEventListeners</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a id="methods.inherited.from.class.org.eclipse.jetty.util.component.Dumpable">
<!-- -->
</a>
<h3>Methods inherited from interface&nbsp;org.eclipse.jetty.util.component.<a href="../../util/component/Dumpable.html" title="interface in org.eclipse.jetty.util.component">Dumpable</a></h3>
<code><a href="../../util/component/Dumpable.html#dumpSelf()">dumpSelf</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a id="methods.inherited.from.class.org.eclipse.jetty.util.component.Dumpable.DumpableContainer">
<!-- -->
</a>
<h3>Methods inherited from interface&nbsp;org.eclipse.jetty.util.component.<a href="../../util/component/Dumpable.DumpableContainer.html" title="interface in org.eclipse.jetty.util.component">Dumpable.DumpableContainer</a></h3>
<code><a href="../../util/component/Dumpable.DumpableContainer.html#isDumpable(java.lang.Object)">isDumpable</a></code></li>
</ul>
<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#addEventListener(java.util.EventListener)">addEventListener</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#removeEventListener(java.util.EventListener)">removeEventListener</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">
<!-- ============ FIELD DETAIL =========== -->
<section role="region">
<ul class="blockList">
<li class="blockList"><a id="field.detail">
<!-- -->
</a>
<h3>Field Detail</h3>
<a id="__NEW_SESSION_ID">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>__NEW_SESSION_ID</h4>
<pre>public static final&nbsp;java.lang.String __NEW_SESSION_ID</pre>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../constant-values.html#org.eclipse.jetty.server.session.DefaultSessionIdManager.__NEW_SESSION_ID">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a id="COUNTER">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>COUNTER</h4>
<pre>protected static final&nbsp;java.util.concurrent.atomic.AtomicLong COUNTER</pre>
</li>
</ul>
<a id="_random">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>_random</h4>
<pre>protected&nbsp;java.util.Random _random</pre>
</li>
</ul>
<a id="_weakRandom">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>_weakRandom</h4>
<pre>protected&nbsp;boolean _weakRandom</pre>
</li>
</ul>
<a id="_workerName">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>_workerName</h4>
<pre>protected&nbsp;java.lang.String _workerName</pre>
</li>
</ul>
<a id="_workerAttr">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>_workerAttr</h4>
<pre>protected&nbsp;java.lang.String _workerAttr</pre>
</li>
</ul>
<a id="_reseed">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>_reseed</h4>
<pre>protected&nbsp;long _reseed</pre>
</li>
</ul>
<a id="_server">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>_server</h4>
<pre>protected&nbsp;<a href="../Server.html" title="class in org.eclipse.jetty.server">Server</a> _server</pre>
</li>
</ul>
<a id="_houseKeeper">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>_houseKeeper</h4>
<pre>protected&nbsp;<a href="HouseKeeper.html" title="class in org.eclipse.jetty.server.session">HouseKeeper</a> _houseKeeper</pre>
</li>
</ul>
<a id="_ownHouseKeeper">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>_ownHouseKeeper</h4>
<pre>protected&nbsp;boolean _ownHouseKeeper</pre>
</li>
</ul>
</li>
</ul>
</section>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<section role="region">
<ul class="blockList">
<li class="blockList"><a id="constructor.detail">
<!-- -->
</a>
<h3>Constructor Detail</h3>
<a id="&lt;init&gt;(org.eclipse.jetty.server.Server)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>DefaultSessionIdManager</h4>
<pre>public&nbsp;DefaultSessionIdManager&#8203;(<a href="../Server.html" title="class in org.eclipse.jetty.server">Server</a>&nbsp;server)</pre>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>server</code> - the server associated with the id manager</dd>
</dl>
</li>
</ul>
<a id="&lt;init&gt;(org.eclipse.jetty.server.Server,java.util.Random)">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>DefaultSessionIdManager</h4>
<pre>public&nbsp;DefaultSessionIdManager&#8203;(<a href="../Server.html" title="class in org.eclipse.jetty.server">Server</a>&nbsp;server,
java.util.Random&nbsp;random)</pre>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>server</code> - the server associated with the id manager</dd>
<dd><code>random</code> - a random number generator to use for ids</dd>
</dl>
</li>
</ul>
</li>
</ul>
</section>
<!-- ============ METHOD DETAIL ========== -->
<section role="region">
<ul class="blockList">
<li class="blockList"><a id="method.detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a id="setServer(org.eclipse.jetty.server.Server)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setServer</h4>
<pre class="methodSignature">public&nbsp;void&nbsp;setServer&#8203;(<a href="../Server.html" title="class in org.eclipse.jetty.server">Server</a>&nbsp;server)</pre>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>server</code> - the server associated with this id manager</dd>
</dl>
</li>
</ul>
<a id="getServer()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getServer</h4>
<pre class="methodSignature">public&nbsp;<a href="../Server.html" title="class in org.eclipse.jetty.server">Server</a>&nbsp;getServer()</pre>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the server associated with this id manager</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">public&nbsp;void&nbsp;setSessionHouseKeeper&#8203;(<a href="HouseKeeper.html" title="class in org.eclipse.jetty.server.session">HouseKeeper</a>&nbsp;houseKeeper)</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../SessionIdManager.html#setSessionHouseKeeper(org.eclipse.jetty.server.session.HouseKeeper)">setSessionHouseKeeper</a></code>&nbsp;in interface&nbsp;<code><a href="../SessionIdManager.html" title="interface in org.eclipse.jetty.server">SessionIdManager</a></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>houseKeeper</code> - the housekeeper</dd>
</dl>
</li>
</ul>
<a id="getSessionHouseKeeper()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getSessionHouseKeeper</h4>
<pre class="methodSignature">public&nbsp;<a href="HouseKeeper.html" title="class in org.eclipse.jetty.server.session">HouseKeeper</a>&nbsp;getSessionHouseKeeper()</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../SessionIdManager.html#getSessionHouseKeeper()">getSessionHouseKeeper</a></code>&nbsp;in interface&nbsp;<code><a href="../SessionIdManager.html" title="interface in org.eclipse.jetty.server">SessionIdManager</a></code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the housekeeper</dd>
</dl>
</li>
</ul>
<a id="getWorkerName()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getWorkerName</h4>
<pre class="methodSignature"><a href="../../util/annotation/ManagedAttribute.html" title="annotation in org.eclipse.jetty.util.annotation">@ManagedAttribute</a>(<a href="../../util/annotation/ManagedAttribute.html#value()">value</a>="unique name for this node",
<a href="../../util/annotation/ManagedAttribute.html#readonly()">readonly</a>=true)
public&nbsp;java.lang.String&nbsp;getWorkerName()</pre>
<div class="block">Get the workname. If set, the workername is dot appended to the session
ID and can be used to assist session affinity in a load balancer.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../SessionIdManager.html#getWorkerName()">getWorkerName</a></code>&nbsp;in interface&nbsp;<code><a href="../SessionIdManager.html" title="interface in org.eclipse.jetty.server">SessionIdManager</a></code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>name or null</dd>
</dl>
</li>
</ul>
<a id="setWorkerName(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setWorkerName</h4>
<pre class="methodSignature">public&nbsp;void&nbsp;setWorkerName&#8203;(java.lang.String&nbsp;workerName)</pre>
<div class="block">Set the workername. If set, the workername is dot appended to the session
ID and can be used to assist session affinity in a load balancer.
A worker name starting with $ is used as a request attribute name to
lookup the worker name that can be dynamically set by a request
Customizer.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>workerName</code> - the name of the worker, if null it is coerced to empty string</dd>
</dl>
</li>
</ul>
<a id="getRandom()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getRandom</h4>
<pre class="methodSignature">public&nbsp;java.util.Random&nbsp;getRandom()</pre>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the random number generator</dd>
</dl>
</li>
</ul>
<a id="setRandom(java.util.Random)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setRandom</h4>
<pre class="methodSignature">public&nbsp;void&nbsp;setRandom&#8203;(java.util.Random&nbsp;random)</pre>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>random</code> - a random number generator for generating ids</dd>
</dl>
</li>
</ul>
<a id="getReseed()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getReseed</h4>
<pre class="methodSignature">public&nbsp;long&nbsp;getReseed()</pre>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the reseed probability</dd>
</dl>
</li>
</ul>
<a id="setReseed(long)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setReseed</h4>
<pre class="methodSignature">public&nbsp;void&nbsp;setReseed&#8203;(long&nbsp;reseed)</pre>
<div class="block">Set the reseed probability.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>reseed</code> - If non zero then when a random long modulo the reseed value == 1, the <code>SecureRandom</code> will be reseeded.</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">public&nbsp;java.lang.String&nbsp;newSessionId&#8203;(javax.servlet.http.HttpServletRequest&nbsp;request,
long&nbsp;created)</pre>
<div class="block">Create a new session id if necessary.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../SessionIdManager.html#newSessionId(javax.servlet.http.HttpServletRequest,long)">newSessionId</a></code>&nbsp;in interface&nbsp;<code><a href="../SessionIdManager.html" title="interface in org.eclipse.jetty.server">SessionIdManager</a></code></dd>
<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="newSessionId(long)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>newSessionId</h4>
<pre class="methodSignature">public&nbsp;java.lang.String&nbsp;newSessionId&#8203;(long&nbsp;seedTerm)</pre>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>seedTerm</code> - the seed for RNG</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>a new unique session id</dd>
</dl>
</li>
</ul>
<a id="isIdInUse(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isIdInUse</h4>
<pre class="methodSignature">public&nbsp;boolean&nbsp;isIdInUse&#8203;(java.lang.String&nbsp;id)</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../SessionIdManager.html#isIdInUse(java.lang.String)">isIdInUse</a></code>&nbsp;in interface&nbsp;<code><a href="../SessionIdManager.html" title="interface in org.eclipse.jetty.server">SessionIdManager</a></code></dd>
<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="doStart()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>doStart</h4>
<pre class="methodSignature">protected&nbsp;void&nbsp;doStart()
throws java.lang.Exception</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from class:&nbsp;<code><a href="../../util/component/ContainerLifeCycle.html#doStart()">ContainerLifeCycle</a></code></span></div>
<div class="block">Starts the managed lifecycle beans in the order they were added.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
<dd><code><a href="../../util/component/ContainerLifeCycle.html#doStart()">doStart</a></code>&nbsp;in class&nbsp;<code><a href="../../util/component/ContainerLifeCycle.html" title="class in org.eclipse.jetty.util.component">ContainerLifeCycle</a></code></dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="../../util/component/AbstractLifeCycle.StopException.html" title="class in org.eclipse.jetty.util.component">AbstractLifeCycle.StopException</a></code> - If thrown, the lifecycle will immediately be stopped.</dd>
<dd><code>java.lang.Exception</code> - If there was a problem starting. Will cause a transition to FAILED state</dd>
</dl>
</li>
</ul>
<a id="doStop()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>doStop</h4>
<pre class="methodSignature">protected&nbsp;void&nbsp;doStop()
throws java.lang.Exception</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from class:&nbsp;<code><a href="../../util/component/ContainerLifeCycle.html#doStop()">ContainerLifeCycle</a></code></span></div>
<div class="block">Stops the managed lifecycle beans in the reverse order they were added.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
<dd><code><a href="../../util/component/ContainerLifeCycle.html#doStop()">doStop</a></code>&nbsp;in class&nbsp;<code><a href="../../util/component/ContainerLifeCycle.html" title="class in org.eclipse.jetty.util.component">ContainerLifeCycle</a></code></dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>java.lang.Exception</code> - If there was a problem stopping. Will cause a transition to FAILED state</dd>
</dl>
</li>
</ul>
<a id="initRandom()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>initRandom</h4>
<pre class="methodSignature">public&nbsp;void&nbsp;initRandom()</pre>
<div class="block">Set up a random number generator for the sessionids.
By preference, use a SecureRandom but allow to be injected.</div>
</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">public&nbsp;java.lang.String&nbsp;getExtendedId&#8203;(java.lang.String&nbsp;clusterId,
javax.servlet.http.HttpServletRequest&nbsp;request)</pre>
<div class="block">Get the session ID with any worker ID.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../SessionIdManager.html#getExtendedId(java.lang.String,javax.servlet.http.HttpServletRequest)">getExtendedId</a></code>&nbsp;in interface&nbsp;<code><a href="../SessionIdManager.html" title="interface in org.eclipse.jetty.server">SessionIdManager</a></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>clusterId</code> - the cluster id</dd>
<dd><code>request</code> - the request</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>sessionId plus any worker ID.</dd>
</dl>
</li>
</ul>
<a id="getId(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getId</h4>
<pre class="methodSignature">public&nbsp;java.lang.String&nbsp;getId&#8203;(java.lang.String&nbsp;extendedId)</pre>
<div class="block">Get the session ID without any worker ID.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../SessionIdManager.html#getId(java.lang.String)">getId</a></code>&nbsp;in interface&nbsp;<code><a href="../SessionIdManager.html" title="interface in org.eclipse.jetty.server">SessionIdManager</a></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>extendedId</code> - the session id with the worker extension</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>sessionId without any worker ID.</dd>
</dl>
</li>
</ul>
<a id="expireAll(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>expireAll</h4>
<pre class="methodSignature">public&nbsp;void&nbsp;expireAll&#8203;(java.lang.String&nbsp;id)</pre>
<div class="block">Remove an id from use by telling all contexts to remove a session with this id.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../SessionIdManager.html#expireAll(java.lang.String)">expireAll</a></code>&nbsp;in interface&nbsp;<code><a href="../SessionIdManager.html" title="interface in org.eclipse.jetty.server">SessionIdManager</a></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>id</code> - The session ID without any cluster node extension</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../SessionIdManager.html#expireAll(java.lang.String)"><code>SessionIdManager.expireAll(java.lang.String)</code></a></dd>
</dl>
</li>
</ul>
<a id="invalidateAll(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>invalidateAll</h4>
<pre class="methodSignature">public&nbsp;void&nbsp;invalidateAll&#8203;(java.lang.String&nbsp;id)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../SessionIdManager.html#invalidateAll(java.lang.String)">SessionIdManager</a></code></span></div>
<div class="block">Invalidate all sessions on all contexts that share the same id.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../SessionIdManager.html#invalidateAll(java.lang.String)">invalidateAll</a></code>&nbsp;in interface&nbsp;<code><a href="../SessionIdManager.html" title="interface in org.eclipse.jetty.server">SessionIdManager</a></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>id</code> - the session id</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">public&nbsp;java.lang.String&nbsp;renewSessionId&#8203;(java.lang.String&nbsp;oldClusterId,
java.lang.String&nbsp;oldNodeId,
javax.servlet.http.HttpServletRequest&nbsp;request)</pre>
<div class="block">Generate a new id for a session and update across
all SessionManagers.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../SessionIdManager.html#renewSessionId(java.lang.String,java.lang.String,javax.servlet.http.HttpServletRequest)">renewSessionId</a></code>&nbsp;in interface&nbsp;<code><a href="../SessionIdManager.html" title="interface in org.eclipse.jetty.server">SessionIdManager</a></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>oldClusterId</code> - the old plain session id</dd>
<dd><code>oldNodeId</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">public&nbsp;java.util.Set&lt;<a href="SessionHandler.html" title="class in org.eclipse.jetty.server.session">SessionHandler</a>&gt;&nbsp;getSessionHandlers()</pre>
<div class="block">Get SessionHandler for every context.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../SessionIdManager.html#getSessionHandlers()">getSessionHandlers</a></code>&nbsp;in interface&nbsp;<code><a href="../SessionIdManager.html" title="interface in org.eclipse.jetty.server">SessionIdManager</a></code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>all SessionHandlers that are running</dd>
</dl>
</li>
</ul>
<a id="toString()">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>toString</h4>
<pre class="methodSignature">public&nbsp;java.lang.String&nbsp;toString()</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
<dd><code><a href="../../util/component/AbstractLifeCycle.html#toString()">toString</a></code>&nbsp;in class&nbsp;<code><a href="../../util/component/AbstractLifeCycle.html" title="class in org.eclipse.jetty.util.component">AbstractLifeCycle</a></code></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/DefaultSessionIdManager.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><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&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>