Skip to content

Commit

Permalink
fix naming
Browse files Browse the repository at this point in the history
Signed-off-by: Olivier Lamy <olamy@apache.org>
  • Loading branch information
olamy committed May 30, 2024
1 parent e144fcf commit 6f52168
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@

@Restricted(NoExternalUse.class)
@MetaInfServices(Provider.class)
public class Jetty12E88Provider implements Provider {
public class Jetty12EE8Provider implements Provider {

/**
* Number of seconds a WebsocketConnection may stay idle until it expires.
Expand All @@ -55,11 +55,11 @@ public class Jetty12E88Provider implements Provider {
*/
private static long IDLE_TIMEOUT_SECONDS = Long.getLong("jenkins.websocket.idleTimeout", 60L);

private static final String ATTR_LISTENER = Jetty12E88Provider.class.getName() + ".listener";
private static final String ATTR_LISTENER = Jetty12EE8Provider.class.getName() + ".listener";

private boolean initialized = false;

public Jetty12E88Provider() {
public Jetty12EE8Provider() {
JettyWebSocketServerContainer.class.hashCode();
}

Expand All @@ -79,7 +79,7 @@ public Handler handle(HttpServletRequest req, HttpServletResponse rsp, Listener
rsp.sendError(HttpServletResponse.SC_BAD_REQUEST, "only WS connections accepted here");
return null;
}
if (!JettyWebSocketServerContainer.getContainer(req.getServletContext()).upgrade(Jetty12E88Provider::createWebSocket, req, rsp)) {
if (!JettyWebSocketServerContainer.getContainer(req.getServletContext()).upgrade(Jetty12EE8Provider::createWebSocket, req, rsp)) {
rsp.sendError(HttpServletResponse.SC_BAD_REQUEST, "did not manage to upgrade");
return null;
}
Expand Down

0 comments on commit 6f52168

Please sign in to comment.