Skip to content

Commit

Permalink
Add support for HttpSession.Accessor
Browse files Browse the repository at this point in the history
  • Loading branch information
janbartel committed May 1, 2024
1 parent da5eee7 commit fa7d815
Show file tree
Hide file tree
Showing 6 changed files with 241 additions and 96 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@

package org.eclipse.jetty.server;

import java.util.function.Consumer;

import org.eclipse.jetty.util.Attributes;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ public void setRefreshCookieAge(int ageInSeconds)
/**
* Get a known existing session
*
* @param extendedId The session id, possibly imcluding worker name suffix.
* @param extendedId The session id, possibly including worker name suffix.
* @return the Session matching the id or null if none exists
*/
@Override
Expand Down Expand Up @@ -1190,7 +1190,7 @@ public void sessionTimerExpired(ManagedSession session, long now)
}
}
}

protected void addSessionStreamWrapper(Request request)
{
request.addHttpStreamWrapper(s -> new SessionStreamWrapper(s, this, request));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ public boolean access(long time)
}
}

void release()
public void release()
{
try (AutoLock ignored = _lock.lock())
{
Expand Down

0 comments on commit fa7d815

Please sign in to comment.