public class WebSocketRequest extends ServletWebRequest
A WebRequest implementation used for the lifecycle of a web socket connection. It keeps a copy of the HttpServletRequest provided by the web container during the creation of the web socket connection (the http upgrade).
Since:
6.0
  • Constructor Details

    • WebSocketRequest

      public WebSocketRequest(jakarta.servlet.http.HttpServletRequest req, String filterPrefix)
      Constructor.
      Parameters:
      req - the copy of the HttpServletRequest used for the upgrade of the HTTP protocol
  • Method Details

    • isAjax

      public boolean isAjax()
      Description copied from class: WebRequest
      Returns whether this request is an Ajax request. This implementation checks for values of "wicket-ajax" url parameter or the "Wicket-Ajax" header. Subclasses can use other approaches.
      Overrides:
      isAjax in class WebRequest
      Returns:
      true if this request is an ajax request, false otherwise.