public class ConnectionExtractor extends Object
Connection
associated
with a HttpServletRequest
.Constructor and Description |
---|
ConnectionExtractor() |
Modifier and Type | Method and Description |
---|---|
static Connection |
extractConnectionFromRequest(HttpServletRequest request)
Extracts the current established
Connection to the FirstSpirit server from
an HttpServletRequest . |
@Nullable public static Connection extractConnectionFromRequest(@NotNull HttpServletRequest request)
Connection
to the FirstSpirit server from
an HttpServletRequest
. If the HTTP session is an HttpSubSession
, the connection
for the subsession will be returned instead of the one opened by the main HTTP session.
If the connection can not be found or it is not established at the moment, null
is returned.
request
- The servlet request to extract the connection from, must not be null
.null
if
no connection is found or if it is not established.Copyright © 2021 e-Spirit AG. All Rights Reserved. Build 5.2.210210