Issue #6696 - change method name to WebSocketNegotiation.upgrade()

Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
This commit is contained in:
Lachlan Roberts 2021-09-07 10:19:51 +10:00
parent d41a297352
commit 2aa966a854
2 changed files with 3 additions and 3 deletions

View File

@ -54,9 +54,9 @@ public abstract class WebSocketNegotiation
return baseRequest;
}
public void setBaseRequest(Request baseRequest)
public void upgrade()
{
this.baseRequest = baseRequest;
this.baseRequest = null;
}
public HttpServletRequest getRequest()

View File

@ -167,7 +167,7 @@ public abstract class AbstractHandshaker implements Handshaker
// Save state from request/response and remove reference to the base request/response.
upgradeRequest.upgrade();
upgradeResponse.upgrade();
negotiation.setBaseRequest(null);
negotiation.upgrade();
if (LOG.isDebugEnabled())
LOG.debug("upgrade connection={} session={} framehandler={}", connection, coreSession, handler);