Class WebSocketRequest


  • public class WebSocketRequest
    extends org.apache.wicket.protocol.http.servlet.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
    • Field Summary

      • Fields inherited from class org.apache.wicket.request.http.WebRequest

        HEADER_AJAX, HEADER_AJAX_BASE_URL, HEADER_ORIGIN, HEADER_REFERER, PARAM_AJAX, PARAM_AJAX_BASE_URL, PARAM_AJAX_REQUEST_ANTI_CACHE
    • Constructor Summary

      Constructors 
      Constructor Description
      WebSocketRequest​(javax.servlet.http.HttpServletRequest req, java.lang.String filterPrefix)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean isAjax()  
      • Methods inherited from class org.apache.wicket.protocol.http.servlet.ServletWebRequest

        cloneWithUrl, generatePostParameters, getCharset, getClientUrl, getContainerRequest, getContextPath, getCookies, getDateHeader, getFilterPath, getFilterPrefix, getHeader, getHeaders, getLocale, getPostParameters, getPrefixToContextPath, getUrl, newMultipartWebRequest, newMultipartWebRequest, shouldPreserveClientUrl
      • Methods inherited from class org.apache.wicket.request.http.WebRequest

        getCookie, getIfModifiedSinceHeader
      • Methods inherited from class org.apache.wicket.request.Request

        getOriginalUrl, getQueryParameters, getRequestParameters
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • WebSocketRequest

        public WebSocketRequest​(javax.servlet.http.HttpServletRequest req,
                                java.lang.String filterPrefix)
        Constructor.
        Parameters:
        req - the copy of the HttpServletRequest used for the upgrade of the HTTP protocol
    • Method Detail

      • isAjax

        public boolean isAjax()
        Overrides:
        isAjax in class org.apache.wicket.request.http.WebRequest