public class WebSocketRequest extends ServletWebRequest
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).HEADER_AJAX, HEADER_AJAX_BASE_URL, HEADER_ORIGIN, HEADER_REFERER, PARAM_AJAX, PARAM_AJAX_BASE_URL, PARAM_AJAX_REQUEST_ANTI_CACHE
Constructor and Description |
---|
WebSocketRequest(javax.servlet.http.HttpServletRequest req,
String filterPrefix)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isAjax()
Returns whether this request is an Ajax request.
|
cloneWithUrl, generatePostParameters, getCharset, getClientUrl, getContainerRequest, getContextPath, getCookies, getDateHeader, getFilterPath, getFilterPrefix, getHeader, getHeaders, getLocale, getPostParameters, getPrefixToContextPath, getUrl, newMultipartWebRequest, newMultipartWebRequest, shouldPreserveClientUrl
getCookie, getIfModifiedSinceHeader
getOriginalUrl, getQueryParameters, getRequestParameters
public WebSocketRequest(javax.servlet.http.HttpServletRequest req, String filterPrefix)
req
- the copy of the HttpServletRequest used for the upgrade of the HTTP protocolpublic boolean isAjax()
WebRequest
isAjax
in class WebRequest
true
if this request is an ajax request, false
otherwise.Copyright © 2006–2022 Apache Software Foundation. All rights reserved.