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, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse rsp) Variant ofupgrade(jenkins.websocket.WebSocketSession)
that does not presume aStaplerRequest
.
-
Method Details
-
upgrade
-
upgradeResponse
public static void upgradeResponse(WebSocketSession session, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse rsp) throws IOException, javax.servlet.ServletException Variant ofupgrade(jenkins.websocket.WebSocketSession)
that does not presume aStaplerRequest
.- Throws:
IOException
javax.servlet.ServletException
- Since:
- 2.446
-
isSupported
public static boolean isSupported()
-