public class AjaxHeaders extends Object
Constructor and Description |
---|
AjaxHeaders() |
Modifier and Type | Method and Description |
---|---|
static boolean |
isPjaxRequest(javax.servlet.http.HttpServletRequest request)
Returns true if the HTTP request contains the header.
|
static boolean |
requestUsernameMatches(javax.servlet.http.HttpServletRequest request,
ApplicationUser user)
Checks whether the effective user has change between the time when the view issue page was loaded and the time
when the current request was made (this can happen due to session timeouts, logging out in another window, etc).
|
public static boolean requestUsernameMatches(javax.servlet.http.HttpServletRequest request, ApplicationUser user)
This method looks at the request header to determine the user that was
effective at the time the page was loaded. If the request header is not present, then that is considered a match
with anything.
request
- a HttpServletRequestuser
- a Userpublic static boolean isPjaxRequest(javax.servlet.http.HttpServletRequest request)
request
- a JiraWebActionSupportCopyright © 2002-2019 Atlassian. All Rights Reserved.