Package jenkins.websocket
Class WebSockets
java.lang.Object
jenkins.websocket.WebSockets
Support for serving WebSocket responses.
- Since:
- 2.216
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
static org.kohsuke.stapler.HttpResponse
upgrade
(WebSocketSession session) static void
upgradeResponse
(WebSocketSession session, jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse rsp) Variant ofupgrade(jenkins.websocket.WebSocketSession)
that does not presume aStaplerRequest2
.
-
Method Details
-
upgrade
-
upgradeResponse
public static void upgradeResponse(WebSocketSession session, jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse rsp) throws IOException, jakarta.servlet.ServletException Variant ofupgrade(jenkins.websocket.WebSocketSession)
that does not presume aStaplerRequest2
.- Throws:
IOException
jakarta.servlet.ServletException
- Since:
- 2.446
-
isSupported
public static boolean isSupported()
-